This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i386: does gcc work with CS â DS?


On 06/02/2015 10:44 PM, H. Peter Anvin wrote:
> Hi guys, another low level question:
> 
> Obviously gcc for i386 requires DS = ES = SS (with FS and GS don't
> care), but does gcc also require CS = DS?

I don't believe so.  In these modern times we don't place switch statement
tables, or other constant data, in the .text section.  Just map the correct
sections to the correct segments and you should be fine.

What advantage are you looking for?


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]