From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30735 invoked by alias); 10 Apr 2008 13:58:47 -0000 Received: (qmail 30727 invoked by uid 22791); 10 Apr 2008 13:58:46 -0000 X-Spam-Check-By: sourceware.org Received: from mail.hasar.com (HELO mailgw.hasar.com) (200.80.204.3) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 10 Apr 2008 13:58:19 +0000 Received: from mailserver.hasar.com ([192.168.1.80]) by mailgw.hasar.com (8.13.7/8.12.10) with ESMTP id m3ADn6vZ008716 for ; Thu, 10 Apr 2008 10:49:06 -0300 Received: (qmail 24994 invoked from network); 10 Apr 2008 14:00:15 -0000 Received: from unknown (HELO [192.0.2.193]) ([192.0.2.193]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 10 Apr 2008 14:00:15 -0000 Message-ID: <47FE1D14.4000405@hasar.com> Date: Thu, 10 Apr 2008 14:42:00 -0000 From: Eduardo Sabaj User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Andrew Lunn , ecos-discuss@ecos.sourceware.org References: <47FCE8F3.3060206@hasar.com> <20080409165726.GB8526@lunn.ch> <47FD0846.9060408@hasar.com> <20080409184558.GI3552@lunn.ch> In-Reply-To: <20080409184558.GI3552@lunn.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-HASAR-MailScanner-Information: Please contact the Administrator for more information X-HASAR-MailScanner: Found to be clean X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] [Fwd: [ECOS] printf and floating point emulation] X-SW-Source: 2008-04/txt/msg00162.txt.bz2 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 Información legal y política de confidencialidad: 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