Re: x86 Segment register use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Fernandez <dfernandez@xxxxxxxxx> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux