www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/01/04:01:47

Date: Sun, 1 Oct 1995 09:09:15 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Some "stupid" questions from a new user

On Fri, 29 Sep 1995, Charles Sandmann wrote:

> On huge programs, this is probably a mistake with the default djgpp malloc
> since it rounds up all requests to the nearest power of 2 before allocating
> a bucket of memory.  So, malloc(8Mb+1) will actually require 16Mb of memory.

Is that the reason that a program is unable to malloc() more than half of 
the available physical RAM when virtual memory is disabled?  When you ask 
for 8MB, the program actually asks for a few bytes more, because of 
malloc() overhead, right?

- Raw text -


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