cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/28/13:42:14

Date: Sun, 28 Feb 1999 18:49:34 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Vic <tudor AT cam DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: A bug in DJGPP
In-Reply-To: <36D95C80.1E29@cam.org>
Message-ID: <Pine.SUN.3.91.990228184454.22837D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sun, 28 Feb 1999, Vic wrote:

> also note that the second 'write' is very close to the end of the array,
> around 20 megs, so far out of my physical memory.

This is incorrect: since you use malloc, not calloc, only the memory you 
actually access is paged in.  So your program actually tested 2 4-KB 
pages: one at the beginning of the array, the other near the end.  8KB is 
clearly less than the physical memory you have installed ;-).

This isn't to say that DJGPP is limited to 15MB, of course.

> second note: djgpp is limited by the amound of memory the DPMI server
> can handle. In CWSDPMI it's 256 megs, I think. Under windows, I dunno,
> but it's not 15 megs.

It depends; it could be 15MB or even less.  See sections 3.10 and 15.6 of 
the FAQ for some details.

- Raw text -


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