Problems with printing double-values with printf and sprintf
Ralf Corsepius
ralf.corsepius at rtems.org
Mon Aug 17 11:51:43 UTC 2009
On 08/17/2009 12:34 PM, Christian Mauderer wrote:
> I'm using the newlib 1.17.0 with RTEMS 4.10 patches out of the
> rtems-4.10-newlib-common-1.17.0-44.suse10.3 rpm.
>
> I'm using the following CFLAGS:
> -mcpu=arm7tdmi-s -mstructure-size-boundary=8 -mapcs-frame -mthumb -Os -g
Well, that's a lot of obscure flags, of which each may cause your problem.
=> We need to further isolate the problem.
Can you try to build and excute something similar to this:
printf( "%f\n", 1.2345 );
while permuting the CFLAGS you are using, esp.
-mcpu=arm7tdmi-s, -mapcs-frame and -mthumb?
Ralf
More information about the users
mailing list