On Tue, Apr 21, 2009 at 21:31, Danny Backx <danny.ba...@scarlet.be> wrote:
> I don't think it's a printf issue.
>
> The statement
>        fprintf(f, "foo %d %f %d\n", 34, 12.0, 67);
>
> prints
>        foo 34 0.000000 1076363264
>
> so I'm inclined to think that the varargs handling is off after a %f.
> Don't know what could cause this though.
>
> Does anyone have a clue ?

We have talked about double alignment before, could this be the
problem? Doubles must be 8 byte aligned on CE. Maybe va_arg doesn't to
align properly to the next 8 byte boundary when it's retrieving a
double? Either that, or the double isn't even stored with an 8 byte
alignment when passed in varargs.

Kind regards,
Carsten Sorensen

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to