delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2017/03/28/11:47:16

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD
autolearn=disabled version=3.3.2
Date: Tue, 28 Mar 2017 18:47:11 +0300
Message-Id: <83r31h769s.fsf@gnu.org>
From: "Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <ec865326-58ac-4534-a150-01a09c4e2798@googlegroups.com>
(djgpp AT delorie DOT com)
Subject: Re: using fs/gs segment registers in djgpp?
References: <ec865326-58ac-4534-a150-01a09c4e2798 AT googlegroups DOT com>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
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

> Date: Tue, 28 Mar 2017 08:19:11 -0700 (PDT)
> From: "jwjagersma AT gmail DOT com [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
> 
> I was wondering if gcc/djgpp ever uses the fs and gs registers. From disassembling a djgpp-compiled exe, I found some references to fs (no idea what's stored there though) but gs appears unused.

Both are used, although FS is used more frequently.  See
<sys/farptr.h> and <libc/farptrgs.h>; the latter is specifically for
code internal to the library.

- Raw text -


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