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: Segment registers support for i386


On 4/4/06, Andrew Haley <aph@redhat.com> wrote:
> RÃmy Saissy writes:
>
>  > > It would take a massive target-specific backend hack to make that
>  > > happen, as GCC > currently only supports flat address spaces. ;-)
>  >
>  > I don't understand why.
>  > gcc currently consider every data access on i386 to be %ds:offset or %ss:offset
>  > depending on the instruction.
>
> No, that's not true.  gcc doesn't know about %ds or %ss.

oh sorry. that's what I though but It seems I explained it with a bad english ;)

>
>  > The purpose is only to add a way to explicitly indicate the section
>  > to use then is could be %gs:offset or %fs:offset.
>  >
>  > I'm new in gcc hacking therefore I still have to learn more about the
>  > internals but
>  > at first glance it doesn't sounds like a so big work.
>
> You'd have to teach gcc about different address spaces.  For example,
> gcc would have to know that %gs:foo couldn't be accessed via %ds.
>

Ok. thanks you too for your anwers, I'll try to do something good now ;)
Have a great day.



--
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.

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