Segment registers support for i386

Rémy Saissy remy.saissy@gmail.com
Fri May 26 06:40:00 GMT 2006


>You won't be able to.  You're going to need to write your own code that,
>during the conversion of the tree to RTL, creates RTL expressions which
>indicate that the memory references use segment registers.  This probably
>won't be easy since there are a lot of contexts where your "far" pointer
>can be used.  I suspect this is where you're going to give up on your
>project, but if you do then RTL expressions you'll need to create should
>probably look like:

>	(mem:SI (plus:SI (unspec:SI [(reg:HI fs)] SEGREF) (reg:SI var)))

>After getting GCC to generate expressions like these, then it's a
>realtively simple case of modifying ix86_decompose_address() to handle
>the unspec.  You might also need to change other backend code for
>handling addresses.

>					Ross Ridge

Thanks for your precisions.


-- 
Rémy Saissy            JabberID: remy.saissy@jabber.fr
                                Web:     http://remysaissy.free.fr
"L'homme qui a le plus vécu n'est pas celui qui a compté le plus d'années,
mais celui qui a le plus senti la vie."
J.-J. Rousseau, Emile.


More information about the Gcc mailing list