Mail Archives: djgpp/1996/06/04/01:51:33
On 3 Jun 1996, GEORGE ARUGAY MONTEMAYOR wrote:
> how do you figure out free memory avaiable (RAM, not physical)?
If you need a function to tell you how much memory is available to
`malloc', then there is no such function in DJGPP. You can only check
how much memory is available to your program (this includes both physical
and virtual, both free and already allocated), and how much physical
memory is still free (outside your program's address space). The memory
that is owned by `malloc' but is on the list of free blocks that `malloc'
maintains cannot be reported, unless somebody writes a function that
walks the internal data structures used by `malloc' and counts the free
blocks.
- Raw text -