Date: Sun, 1 Oct 1995 09:09:15 +0200 (IST) From: Eli Zaretskii To: Charles Sandmann 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?