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

Eduardo Sabaj esabaj@hasar.com
Thu Apr 10 14:42:00 GMT 2008


I'm working with one of the pre-built toolchains for Intel x386 which 
I've downloaded some years ago. Anyway, yesterday I downloaded this same 
toolchain from  http://ecos.sourceware.org/getstart.html.

I executed:

       wget --passive-ftp 
ftp://ecos.sourceware.org/pub/ecos/ecos-install.tcl
              sh ecos-install.tcl

Then I compiled sprintf1.c with this new environment and the result is 
the same. The program crashes with the first line with %f format.

Eduardo

Andrew Lunn escribió:
> 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
>
>   


-- 

Ing. Eduardo Salvador Sabaj
Analista de Desarrollo

Compañía Hasar | Grupo Hasar*
*Marcos Sastre y José Ingenieros
El Talar. Pacheco
[B1618CSD] Buenos Aires. Argentina
Tel [54 11] 4117 8900 | Fax [54 11] 4117 8998
E-mail: esabaj@hasar.com
Visítenos en: www.hasar.com
<http://www.hasar.com>Información legal y política de confidencialidad: 
www.grupohasar.com/disclaimer <http://www.grupohasar.com/disclaimer>


-- 
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