This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Got printf() et al. to work, but not for floating point
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Rick Mann'" <rmann at latencyzero dot com>, <newlib at sourceware dot org>
- Date: Fri, 14 Sep 2007 17:35:12 +0100
- Subject: RE: Got printf() et al. to work, but not for floating point
- References: <826441FA-D276-409E-994F-C082587DEB15@latencyzero.com>
On 13 September 2007 01:24, Rick Mann wrote:
> So, I've gotten printf() to work on my PXA320 target, outputting to
> the serial port. I've also got floating point working, as evidenced
> by a little bouncing-ball app I wrote using floating point math. I
> also have malloc() working (AFAICT).
>
> However, if I try to print a floating-point value with printf(), the
> system either crashes or hangs for a long time.
>
> printf("Hello. Pi is %f\n", 3.141592654f);
>
> Any ideas as to why?
At a WAG, perhaps your compiler and your newlib disagree about whether or
not you've built for hard-float or soft-float?
cheers,
DaveK
--
Can't think of a witty .sigline today....