From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29401 invoked by alias); 8 Apr 2008 19:55:08 -0000 Received: (qmail 29309 invoked by uid 22791); 8 Apr 2008 19:55:06 -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; Tue, 08 Apr 2008 19:54:43 +0000 Received: from mailserver.hasar.com ([192.168.1.80]) by mailgw.hasar.com (8.13.7/8.12.10) with ESMTP id m38JjHHo017424 for ; Tue, 8 Apr 2008 16:45:18 -0300 Received: (qmail 5967 invoked from network); 8 Apr 2008 19:56:24 -0000 Received: from unknown (HELO [192.0.2.193]) ([192.0.2.193]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 8 Apr 2008 19:56:24 -0000 Message-ID: <47FBCD9D.6030107@hasar.com> Date: Tue, 08 Apr 2008 20:15:00 -0000 From: Eduardo Sabaj User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: ecos-discuss@ecos.sourceware.org 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: [ECOS] printf and floating point emulation X-SW-Source: 2008-04/txt/msg00142.txt.bz2 I have a program that hangs when trying to format and print something like this: void func (float f) { printf ("%.2f\n", f); } I don't have an FPU builtin hardware. The CPPFLAGS and LDFLAGS include the following options: -msoft-float -mno-fp-ret-in-387 -mno-fancy-math-387 I disabled the FPU support (macro CYGHWR_HAL_I386_FPU) and I enabled CYGSEM_LIBC_STDIO_PRINTF_FLOATING_POINT and CYGSEM_LIBC_STDIO_SCANF_FLOATING_POINT macros. I'm running ecos-2.0 (the last version available in CVS). Please, I cannot realize what I'm omiting.. Any idea? -- 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