newlib-nano 64 bit types

Asked by Matthijs Boelstra

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:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
Matthijs Boelstra (matthijs-boelstra) said :
#2

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