www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/16/20:11:55

Date: Sat, 17 Jun 1995 00:37:28 +0100 (BST)
From: Shawn Hargreaves <slh100 AT unix DOT york DOT ac DOT uk>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Disabling virtual memory?

Sorry to be posting this to the listserv rather than the newsgroup, but 
the newsgroup hasn't show up on my newsfeed yet.

First, as this is my first time posting to this list, I would like to say 
a big thank you to DJ and the rest of the djgpp development team: it is a 
great system.

Second, a question: is there any way to turn off go32's virtual memory?
I am writing a computer game which uses a lot of bitmap data, and I want 
to write my own loader and discard routines becuase I can do this a lot 
more efficiently than go32. Ideally I would like to be able to have 
malloc only use physical memory, and return NULL when memory runs out. 
Failing this, I need some way to check how much memory is left: 
_go32_dpmi_remaining_physical_memory() seems to have problems with not 
noticing when memory is allocated and freed. Does anyone know any 
solutions to this problem (or will V2 provide a way to disable virtual 
memory?).

Thanks...


Shawn Hargreaves                    "God is real, unless declared as integer."
http://www.york.ac.uk/~slh100/       ----------------------------------------

- Raw text -


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