delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/05/23:30:24

From: jlrubin AT bway DOT net (Josh Rubin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: wanted: demand zero pages for uninitialized static data
Date: Sat, 06 Jun 1998 03:15:04 GMT
Organization: ISPNews http://ispnews.com
Lines: 21
Message-ID: <3578b2e5.466587@news1.bway.net>
References: <35787c8c DOT 2850717 AT news1 DOT bway DOT net> <6la1c6$sac$1 AT rosenews DOT rose DOT hp DOT com>
NNTP-Posting-Host: dial-rose-39.bway.net
Mime-Version: 1.0
NNTP-Posting-Date: 6 Jun 1998 03:15:23 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Fri, 5 Jun 1998 17:09:44 -0700, "Andrew Crabtree"
<andrewc AT rosemail DOT rose DOT hp DOT com> wrote:

>>djgpp stub clears the "BSS" section. This causes a lot
>
>This is AFAIK required.  You always assume that an unitialized global is
>zeroed.
>

I didn't make my question clear enough.
In Dec VAX terminology, a "demand zero page" is an uncommited page
that is allocated and filled with zeroes the first time it is
referenced. I hoped that DPMI supported such a thing and all I had to
do was twiddle some page attribute bits somewhere.

If it were that simple, I was going to suggest that DJGPP do this by
default.

Josh Rubin
jlrubin AT bway DOT net

- Raw text -


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