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]" To: djgpp AT delorie DOT com In-reply-to: (djgpp AT delorie DOT com) Subject: Re: using fs/gs segment registers in djgpp? References: 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 Precedence: bulk > Date: Tue, 28 Mar 2017 08:19:11 -0700 (PDT) > From: "jwjagersma AT gmail DOT com [via 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 and ; the latter is specifically for code internal to the library.