Jump to ID:
BSPs and Drivers

Project Home

Documents

Discussions

Wiki

Project Info
Forum Topic - What library for soft floating point operators: Page 1 of 6 (6 Items)
   
 
 
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