delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/11/05:30:29

Date: Thu, 11 Jul 1996 12:25:41 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Merlin <drb AT onramp DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: Mem info at DPMI init
In-Reply-To: <4s279p$6ki@news.onramp.net>
Message-Id: <Pine.SUN.3.91.960711122047.7062D-100000@is>
Mime-Version: 1.0

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 -


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