www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/10/12:28:45

Date: Wed, 10 Sep 1997 19:27:58 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Brad Fidler <BF AT rwdi DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Curious about selectors
In-Reply-To: <s4166e7f.088@pob.rwdi.com>
Message-ID: <Pine.SUN.3.91.970910192317.10908G-100000@is>
MIME-Version: 1.0

On Wed, 10 Sep 1997, Brad Fidler wrote:

> Q)So this got me wondering, what is your programs 
> DS selectors value normally?

You get different values with different DPMI hosts.  The value itself is 
not special in any way, AFIK, it's just an offset into the descriptor 
table.

> what happens to it if you malloc large chunks of
> memory? is it dynamically resized?

The limit changes, and sometimes the base address, but the selector 
itself stays put.

> Its a minor thing but hey 5 percent is still 5
> percent!(but that 5% probably isn't worth
> disabling memory protection with a Fat DS!)

It also isn't worth losing portability (NT, Linux DOSEmu etc.), IMHO.

- Raw text -


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