newlib-nano 64 bit types

Asked by Matthijs Boelstra on 2013-01-13

Hello,

I've just changed from using newlib to newlib-nano and having a problem using printf/scanf with 64-bit integers.
It looks like this is not supported by newlib-nano.

Is there a way to rebuild newlib-nano and enable support for 64-bit integers in printf/scanf?

Thanks in advance.

Matthijs

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
chengbin
Solved:
2013-01-14
Last query:
2013-01-14
Last reply:
2013-01-14
Best chengbin (can-finner) said : #1

Hi Matthijs,
Format IO in newlib-nano does not support 64bit integer in source code level, so unfortunately you cannot get it by re-building the library.
For now, the conclusion is only 64bit integer which does not overflow the corresponding 32bit type should be supported in newlib-nano printf/scanf.

Hoping this can help.

Ok, thanks for answering my question. I'll stick to the full newlib library then.