This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: x86 Segment register use
David Fernandez <dfernandez@cct.co.uk> writes:
> > > Could anyone there tell which segment registers does the compiler use
> > > (CS, DS, ES, FS, GS), or if it doesn't use any at all and rely on the
> > > default segments all the time?
gcc for i386 GNU/Linux uses a segment register override to implement
__thread. Otherwise, it does not use segment registers, and expects a
flat address space.
> > > Is there any way to tell it that a specific variable resides, or is
> > > addressable only through a specific segment register?
No.
Ian