public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Eduardo Sabaj <esabaj@hasar.com>
To: Andrew Lunn <andrew@lunn.ch>, ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] [Fwd: [ECOS] printf and floating point emulation]
Date: Thu, 10 Apr 2008 14:42:00 -0000	[thread overview]
Message-ID: <47FE1D14.4000405@hasar.com> (raw)
In-Reply-To: <20080409184558.GI3552@lunn.ch>

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

  reply	other threads:[~2008-04-10 13:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-09 16:58 Eduardo Sabaj
2008-04-09 18:24 ` Andrew Lunn
2008-04-09 18:46   ` Eduardo Sabaj
2008-04-10  6:12     ` Andrew Lunn
2008-04-10 14:42       ` Eduardo Sabaj [this message]
     [not found]       ` <47FE1CCC.2070001@hasar.com>
2008-04-10 19:07         ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47FE1D14.4000405@hasar.com \
    --to=esabaj@hasar.com \
    --cc=andrew@lunn.ch \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).