Floating point library for embedded application
c, embedded, floating-point
Solution
Would you not be better off (performance and size wise) using fixed point? For simple arithmetic, this is trivial to implement either directly or with a function interface. If you could bare to use C++, using operator overloading could make the use of fixed almost seamless (at no runtime overhead compared to a C function interface).
If you have more complex requirements (trig, roots etc), a good fixed-point library is presented in this Dr. Dobb's Article.
Problem
I'm developing program for Cortex-M3. It doesn't have floating point coprocessor. Standard C library can emulate floating point operations, but I don't use it due to its size. Is there any good and free c library, which can emulate floating point arithmetics, targeted on ARM processors? Currently, when I use floating point operators I have such linkage errors: ``` undefined reference to `__adddf3' undefined reference to `__subdf3' undefined reference to `__divdf3' undefined reference to `__extendsfdf2' undefined reference to `__muldf3' ``` So probably such library should implement them.