RE: x86 Segment register use

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

 



> 	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?
> 
> 	Is there any way to tell it that a specific variable resides, or is
> addressable only through a specific segment register?

By "use" do you mean to ask whether segmented pointers are supported in the
Intel GCC C++ compiler?  I asked a similar question a week or two ago, and
the answer was "no".  (Recall that segmented memory architecture is not
supported on many of the target platforms for GCC, so this would be an target
specific extension, and one that is fairly invasive, as well.)  I believe that
the GCC C++ compiler only supports the "tiny, flat" model on iapX86.  

I know this is a GCC maillist, and it may be heresy, but I'd recommend looking
at the Watcom C++ Compiler (www.openwatcom.org) if you are looking for segment:offset
type pointers (48 bits).  Be aware that you may have to give up other language 
feature in exchange - I'm not sure how up-to-date / std compliant the Watcom compiler
is, particularly for advanced template handling.


[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