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