delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/31/10:02:48

Date: Tue, 31 Jul 2001 10:02:17 -0400
Message-Id: <200107311402.KAA16074@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <Pine.SUN.3.91.1010731164503.3973B-100000@is> (message from Eli
Zaretskii on Tue, 31 Jul 2001 16:47:03 +0300 (IDT))
Subject: Re: ds==ss why?
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010731164503 DOT 3973B-100000 AT is>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Strictly speaking, that's not true: CS and DS hold two different 
> selectors, but both these selectors point to segment descriptors
> which describe the same memory region.

GCC doesn't put jump tables, constants, or strings in the text
segment?  If it does, it expects CS==DS as far as memory maps go.
(obviously, the *values* of cs and ds differ, because one is a code
selector and the other is a data selector).

- Raw text -


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