www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/09/22/20:24:27

Date: Wed, 22 Sep 1999 16:57:44 -0700
Message-ID: <vines.Vm1E+snKurB@ptlsjlab1.phoenix.com>
X-Priority: 3 (Normal)
To: <djgpp-workers AT delorie DOT com>
From: <johnny_chan AT phoenix DOT com> (Johnny Chan)
Subject: DJGPP virtual memory
X-Incognito-SN: 1587
X-Incognito-Version: 5.0.1.89
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

Q: Is it possible to disable the virtual memory feature (swap file) in DJGPP?
I wrote a program which will calloc() a 64MB memory. Of course, I dont have 64MB in my system. 

If I compile this program using DJGPP (rhide) in W98, the output program will fail during the run-time in W98. 

But if I compile this program using DJGPP (rhide) in DOS, the output program will run fine in DOS... Of course, the HDD runs and I assume it is swapping pages between HDD and RAM. 

Is it any way to disable the virtual memory here? what's the difference between compiling in DOS and W98 using DJGPP?

Any idea?
--jC

- Raw text -


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