This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: [Fwd: printf and floating point emulation]
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