delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/09/16:49:30

From: "beat studer" <beat_studer AT freesurf DOT ch>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Size
Date: Thu, 9 Dec 1999 21:47:17 +0100
Organization: sunrise communications ag
Lines: 30
Message-ID: <82p4l1$t2v$1@news1.sunrise.ch>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 991209111245 DOT 21000H-100000 AT is>
NNTP-Posting-Host: pop-zh-14-2-dialup-18.freesurf.ch
X-Trace: news1.sunrise.ch 944772577 29791 194.230.210.18 (9 Dec 1999 20:49:37 GMT)
X-Complaints-To: usenet AT sunrise DOT ch
NNTP-Posting-Date: 9 Dec 1999 20:49:37 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT Delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Sorry, didn't know exactly what's in conventional and DPMI-memory, just was
happy to see that I never ran out of conventional memory with djgpp.

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in message
news:Pine DOT SUN DOT 3 DOT 91 DOT 991209111245 DOT 21000H-100000 AT is...
>
> On Wed, 8 Dec 1999, beat studer wrote:
>
> > If you
> > run a program with a DOS-Shell and look at the memory (e.g.  with 'mem
/c')
> > you'll find that only a relatively small portion is loaded into memory
(e.g.
> > 100 kb file-size vs. 17 kb in memory).
>
> "mem /c" on Windows is not useful with DJGPP programs, because it
> doesn't show any changes in the extended memory, where most of the
> memory used by DJGPP programs resides.  Those 17KB in conventional
> memory that you see in MEM's report are the 16KB transfer buffer and
> some other data that must be below 1MB.  But the bulk of the memory
> used by a DJGPP program: the code, the data, and the satck, is not
> shown at all by MEM, because they live in DPMI memory which MEM
> doesn't include in its report.  To prove this to yourself, run a
> REALLY large DJGPP program and look at what MEM reports when run from
> that program: you will still see those same 17KB (actually, closer to
> 18KB, but that's immaterial).
>
> See section 15.8 of the DJGPP FAQ list for more about this.


- Raw text -


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