[ECOS] [Fwd: [ECOS] printf and floating point emulation]

Andrew Lunn andrew@lunn.ch
Thu Apr 10 06:12:00 GMT 2008


On Wed, Apr 09, 2008 at 03:17:42PM -0300, Eduardo Sabaj wrote:
> Andrew, the program fails with the printing of any floating point  
> number. Anyway, what I'm printing is :
>
>        printf ("main: %f\n", 2.345);
>
> The lines below were produced by the test program in:
>
> 	packages/language/c/libc/stdio/current/tests/sprintf1.c
>
> When the program reaches the first line with a %f format it hangs:
>
> 	// Check 18
> 	ret = sprintf(x, "%f", 2.5);

What toolchain are you using? Is it the eCos one from
http://ecos.sourceware.org/getstart.html

     Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list