From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams) Newsgroups: comp.os.msdos.djgpp Subject: Re: windows <-> cwsdpmi Date: Thu, 19 Dec 1996 22:18:56 GMT Lines: 26 Message-ID: <851033912.16327.1@abwillms.demon.co.uk> References: <32B8766B DOT 318B AT nlc DOT net DOT au> <32B8B3EE DOT 7AEC AT cs DOT com> NNTP-Posting-Host: abwillms.demon.co.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp "John M. Aldrich" 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 Hello :-)