Building with float support

Rick Mann rmann@latencyzero.com
Fri Jan 2 11:57:00 GMT 2009


Is there anything to read about building newlib with floating-point  
support (particularly in snprintf()).

I did this:

./configure --target=arm-elf --prefix=/usr/local/arm-elf-float

and modified the resulting Makefile to include these lines:

CFLAGS_FOR_TARGET = -DFLOATING_POINT -g -O2
CXXFLAGS_FOR_TARGET = -DFLOATING_POINT -g -O2

Then I did "make install" and placed the results from arm-elf-float  
into my existing arm-elf-gcc/newlib installation. After recompiling my  
project, I'm still getting behavior that indicates there's no floating  
point support (garbage printed for %f printf).

Did I miss a setting or do something wrong?

TIA,
-- 
Rick



More information about the Newlib mailing list