|
Thomas Allen
|
What library for soft floating point operators
|
|
Thomas Allen
05/15/2008 12:50 PM
post8120
|
What library for soft floating point operators
Hi
This is a follow up question I had relating to floating point running slow on the MPC8541E CPU. I understand that the
MPC85XX doesn't have a FPU so the floating point stuff is throwing an exception to be handled.
I found that if I use the -msoft-float compiler option the performance is much better. I guess no exception calls, just
software floating point functions.
So calling a sinf 128K times with the -msoft-float gcc option now runs in around 700ms instead of 10 seconds without.
So now my question. When I use (with the -msoft_float option) any operators like (+,-,/,*) I get linking errors saying
undefined function (__addsf3, __divsf3 etc). What library do I need to include for these functions.
Thanks
Thom
|
|
|
|
|