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.
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.
The newlib stdio routines as configured do not seem to support the newer
ll
length modifier code forprintf
and friends.In particular,
printf("%llx", ...)
is interpreted the same asprintf("%lx", ...)
.Since
ia16-elf-gcc
does signal its support forlong long int
via__INT_LEAST64_TYPE__
-- and this is used byPRIx64
in<inttypes.h>
-- to me it seems a bit incongruous that newlib'sprintf
does not actually support this format code. I believe this issue can be fixed by modifyingnewlib/configure.host
.Thank you!