crtc-demos / newlib-ia16

Newlib port for IA16
GNU General Public License v2.0
5 stars 5 forks source link

printf("%llx" ...) not properly supported despite PRIx64 being present #3

Open tkchia opened 7 years ago

tkchia commented 7 years ago

The newlib stdio routines as configured do not seem to support the newer ll length modifier code for printf and friends.

In particular, printf("%llx", ...) is interpreted the same as printf("%lx", ...).

Since ia16-elf-gcc does signal its support for long long int via __INT_LEAST64_TYPE__ -- and this is used by PRIx64 in <inttypes.h> -- to me it seems a bit incongruous that newlib's printf does not actually support this format code. I believe this issue can be fixed by modifying newlib/configure.host.

Thank you!

tkchia commented 7 years ago

In addition: is there a way I can report an issue for the gcc-ia16 port? I could not find an "Issues" tab for the GitHub project. Thank you very much again.