Mail Archives: djgpp/1996/12/19/19:38:15
"John M. Aldrich" <fighteer AT cs DOT com> wrote:
>The malloc() used by DJGPP rounds the size of allocated memory blocks to
>the next higher power of 2. So, allocating 300 bytes gets you 512;
>allocating 1500 bytes gets you 2048, and allocating 8 MB + 1 gives you
>16 MB. This, unfortunately, is a speed optimization of the GNU C
>compiler, so it can't easily be changed.
Awooga! It's a feature of libc, not gcc, and can be relatively easily
changed if you have the libc sources, I guess... an implementation of
garbage collection that can be turned on at compile time would be
nice, too...
ABW
--
"Simply drag your mother in law's cellphone number from the
Address Book to the Laser Satellite icon, and the Targeting
Wizard will locate her. Then follow the onscreen prompts for
gigawattage and dispersion pattern..."
(Windows for Early Warning and Defence User's manual P385)
Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk
<A HREF="http://www.abwillms.demon.co.uk/">Hello :-)</A>
- Raw text -