Mail Archives: djgpp/1996/07/11/05:30:29
On Thu, 11 Jul 1996, Merlin wrote:
> First off, I'm new with DJGPP and pmode. When you start up Quake
> (which was compiled in DJGPP, it prints info on how much DPMI,
> virtual, and other types of memory there are. I want to have that
> stuff in my programs too. How do I do this? Is it some setting in
> CWSDPMI or is it just printf'd values from functions that return
> amounts of memory? Any help is much appreciated.
There are a couple of functions in the DJGPP library that will return
various pieces of info about memory. The most useful functions are
`__dpmi_get_free_memory_information' and `__dpmi_get_memory_information';
look them up in the library on-line docs, like this:
info libc alphabetic __dpmi_get_memory_information RET
- Raw text -