From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20531 invoked by alias); 9 Apr 2008 18:46:56 -0000 Received: (qmail 20496 invoked by uid 22791); 9 Apr 2008 18:46:55 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 09 Apr 2008 18:46:27 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1JjfJ0-0004MD-00; Wed, 09 Apr 2008 20:45:58 +0200 Date: Thu, 10 Apr 2008 06:12:00 -0000 From: Andrew Lunn To: Eduardo Sabaj Cc: Andrew Lunn , ecos-discuss@ecos.sourceware.org Message-ID: <20080409184558.GI3552@lunn.ch> Mail-Followup-To: Eduardo Sabaj , Andrew Lunn , ecos-discuss@ecos.sourceware.org References: <47FCE8F3.3060206@hasar.com> <20080409165726.GB8526@lunn.ch> <47FD0846.9060408@hasar.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47FD0846.9060408@hasar.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) 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/msg00156.txt.bz2 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