[comp.sys.atari.st] Megamax malloc

braner@batcomputer.tn.cornell.edu (braner) (09/22/87)

[]

Megamax malloc() supposedly gets RAM from the OS in chunks no smaller than
8K.  It also never returns any RAM to the OS until the program exits.  (It
does, of course, reuse the allocated blocks if you free() them).  I have
not had problems with malloc() under Megamax yet, even under heavy use (in
microEMACS).  If you want to minimize malloc()'s use of Malloc() you can
temp=malloc(a bunch); free(temp); to start with, then proceed to malloc(little
bits).  The quantity "a bunch" should be more than 8K to help.  Unfortunately
it cannot be more than 64K since it is an unsigned int.

- Moshe Braner

PS: the rumors on the qualities of Megamax 2.0 sound _great_.  When?