From: Eduardo Sabaj <esabaj@hasar.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] printf and floating point emulation
Date: Tue, 08 Apr 2008 20:15:00 -0000 [thread overview]
Message-ID: <47FBCD9D.6030107@hasar.com> (raw)
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
<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-08 19:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=47FBCD9D.6030107@hasar.com \
--to=esabaj@hasar.com \
--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).