Mail Archives: djgpp/1996/10/23/02:28:03
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>On Thu, 17 Oct 1996, Jon Slaughter wrote:
>Check out the method your program uses to allocate memory. If it
>allocates all the 18 MB at once, the DJGPP library allocation functions
>round that up to the next power of 2, which means you ask for 32 MB.
How serious is that power-of-two waste - in that is it then free for
the next allocation to be taken from (ie if I then request 32-18 =
14Mb will it not 'allocate' any more), or is it really that bad?
If so, what's the point? Surely it's no slower to allocate to the
nearest word?
ABW
---
COMPUTER: We are in position over the Rebel homeworld.
VADAR: Engage the Death Star primary weapon, let those rebel worms die!
COMPUTER: Sorry, your evaluation version of Battle Computer 3.0 has expired.
Please send 2.6 billion dollars to the address in REGISTER.TXT
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 -