delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/18/02:50:40

From: Tudor <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Growing pains with DJGPP
Date: Thu, 17 Apr 1997 19:18:08 -0400
Organization: Communications Accesibles Montreal
Lines: 12
Message-ID: <3356AFB0.75B0@cam.org>
References: <5ingih$3dq$1 AT sparcserver DOT lrz-muenchen DOT de> <5io2gf$t3c$2 AT grissom DOT powerup DOT com DOT au>
Reply-To: tudor AT cam DOT org
NNTP-Posting-Host: dynppp-63.hip.cam.org
Mime-Version: 1.0
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.
AFAIK ,because of CWSDPMI, you can use up to 256 MBs of virtual memory
so, yes, you _can_ allocate that without any error.
but I don't know what would happen if you would allocate dozens of such
arrays and try to use them all at once...
-- 
tudor 'at' cam 'dot' org
http://www.cam.org/~tudor
'This is Scott Nudds of the Borg. C is irrelevant.'

- Raw text -


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