Mail Archives: djgpp/1999/02/28/13:42:14
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 -