ARMmbed / target-mbed-gcc

DEPRECATED Base for mbed yotta compilation targets compiling with GCC
Apache License 2.0
6 stars 12 forks source link

printf doesn't work with 64-bit integers #28

Open kjbracey opened 8 years ago

kjbracey commented 8 years ago

As floating-point types are being looked at, what about 64-bit integers? These can be printed fine with armcc, but currently nothing from gcc.

It appears newlib-nano cuts them off as "post-C89", which seems very unhelpful - we have to handle 64-bit integers much more often than floats, so the choice of dividing line seems unrealistic.

Any suggestions on making this work? Patch newlib-nano? Switch to newlib? Have people provide their own alternative print routines?

The last has already started happening, eg in:

https://github.com/ARMmbed/mbed-client/pull/132

ciarmcom commented 8 years ago

ARM Internal Ref: IOTSFW-1942