Alessandro Vagniluca wrote:
Hi to all.

I am working with the mspgcc version based on GNU GCC v3.2.3.

I'd like to know if format strings for float and double variables (e.g.
"%f", "%lf", "%g") are supported for the stdio functions like printf(),
sprintf(), sscanf(), etc.


nope they are not implemented in printf. floats are not often used but the implementation in printf uses a considerable amount of code.
Is there maybe a compiler option flag to set to have also float formats to
work?

no. a colleague has tried to compiler avrgcc libc for the msp430, he succeded with a few chenges. i have to try that myself and maybe add that lib to the distribution. it is more complete, but the stdio emulation is different and thee is no uprintf, its not a one to one replacement.

chris

Reply via email to