www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/04/01:51:33

Date: Tue, 4 Jun 1996 08:48:40 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: GEORGE ARUGAY MONTEMAYOR <gmontem AT sfsu DOT edu>
Cc: djgpp AT delorie DOT com
Subject: Re: How much free memory?
In-Reply-To: <4ov8i4$kp6@news.csus.edu>
Message-Id: <Pine.SUN.3.91.960604084342.23408G-100000@is>
Mime-Version: 1.0

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 -


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