libffi & powerpc
Andrew Haley
aph-gcc@littlepinkcloud.COM
Tue May 15 09:30:00 GMT 2007
Patrick Olinet writes:
> > > I thought that fpu emulation worked by trapping cpu exceptions when a
> > > fpu instruction is being executed and then emulating this instruction
> > > on software level.
> >
> > Yes.
> >
> > > Isn't the mechanism implemented by the "--with-float=soft" option ?
> >
> > No. FPU emulation requires no special compile-time options. The
> > whole idea is that it runs the same code as native FP.
> >
> > In contrast, soft-float generates inline subroutine calls for all
> > floating-point operations.
>
> ok, I get it. So, is there a way to add fpu emulation emulation to my
> platform without having to change anything to my native binary code ?
It's the kernel's job. Nothing at all to do with user space code.
Andrew.
More information about the Gcc
mailing list