Mail Archives: djgpp/1995/10/01/04:01:47
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 -