From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Growing pains with DJGPP Date: Sat, 12 Apr 1997 01:39:43 -0700 Organization: Two pounds of chaos and a pinch of salt Lines: 21 Message-ID: <334F4A4F.4C81@cs.com> References: <5ingih$3dq$1 AT sparcserver DOT lrz-muenchen DOT de> <5io2gf$t3c$2 AT grissom DOT powerup DOT com DOT au> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp105.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp David Orme wrote: > > I managed to malloc a 128Mb array of ints, and I only have 8Mb of RAM! I was > wondering if DJGPP double buffers or something I didn't recieve an error or > a NULL from the malloc command. This is because under protected mode, you can use hard drive space as virtual memory. cwsdpmi, the free DPMI host that comes with the DJGPP distribution, allows the use of up to 128 MB of physical memory and 128 MB of virtual memory. So as long as you have enough disk space, you can happily go ahead and grab that 128 MB array. Of course, when you try to actually _use_ it, be prepared to wait a long time. Virtual memory is much slower than physical. ;) -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | "Starting flamewars since 1993" | http://www.cs.com/fighteer | | *** NOTICE *** This .signature is generated randomly. | | If you don't like it, sue my computer. | ---------------------------------------------------------------------