Mail Archives: djgpp/1997/04/12/15:53:46
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. |
---------------------------------------------------------------------
- Raw text -