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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Date: 6 Jun 1998 03:15:23 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Fri, 5 Jun 1998 17:09:44 -0700, "Andrew Crabtree" 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