www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/23/02:28:03

From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Virutal memory problems.
Date: Mon, 21 Oct 1996 18:05:17 GMT
Lines: 27
Message-ID: <845921032.28340.0@abwillms.demon.co.uk>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 961020074010 DOT 29425L-100000 AT is>
NNTP-Posting-Host: abwillms.demon.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019