mpc8xx fpu emu
Conn Clark
clark at esteem.com
Thu Sep 12 07:42:37 EST 2002
Hello Alban,
Unfortunatly the ppc code generated by the -msoft-float option does not
pass values in the same way as code generated for a chip with a fpu or a kernel
with fpu emulation. This is done to get a boost in speed on fpuless chips. This
renders software/libraries compiled one way to not be compatible with stuff
compiled the other way when passing floating point values(Note: there are some
cases where they will work correctly together).
The -msoft-float option does not increase executable/library size in
any signifigant way and provides a signifigant speed boost. Also a few people
say that the fpu emulation code in the kernel is buggy. The -msoft-float has
become the default way things are done on the fpuless Motorola 8xx family for
these reasons.
This means you must compile everything (and I mean everything) to use
-msoft-float or compile everything to use the fpu. So if you are not interested
in building and maintaining your own tool chain and possibly squishing some fpu
emulation bugs, you are better off using -msoft-float like everybody else.
Hope this answers your question.
Conn
--
*****************************************************************
If you live at home long enough, your parents will move out.
(Warning they may try to sell their house out from under you.)
*****************************************************************
Conn Clark
Engineering Stooge clark at esteem.com
Electronic Systems Technology Inc. www.esteem.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list