delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/28/11:38:49

Date: Fri, 28 Jan 94 11:29:33 EST
From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock)
To: ryoung AT clark DOT dgim DOT doc DOT ca
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Memory available function?
Reply-To: babcock AT cfa DOT harvard DOT edu

> I have a program which does numerous frees and deletes of large arrays 
> and I wish to monitor the amount of memory available.  Is their a function 
> which can provide me with this information.  Something similar to Borland 
> C++ 's coreleft() function would be sufficient.

Look at _go32_dpmi_remaining_physical_memory() and
_go32_dpmi_remaining_virtual_memory() and the lower level routine they call.
Note that in some environments, only the virtual memory value is valid.

> There were a number of .Inn, .tex, .inf files that appear to be documentation
> but that I can't look at with my test editor.  Could some one enlighten me as
> to what these are and how I can read them.

The .TEX files are processed by makeinfo to make formatted help files
(extension varies).  The formatted files can be read in GNU emacs using the
info command, or using info.exe which is included in the djgpp distribution.
You'll also see DIR files which are the top-level menus for selecting
what help to read.  You may need to adjust paths in the DIR files if you
don't put the info files in the standard places.

- Raw text -


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