[vHype-discussion] u64 in linux
Segher Boessenkool
segher at kernel.crashing.org
Mon Oct 18 19:55:26 EST 2004
> C99 also mandates that the macro PRIu64 contains the correct
> format string for uint64_t (which afaik is always the same as u64).
> It's currently not defined in linux, but could perhaps be added.
Works fine for me:
#include <inttypes.h>
char x[] = PRIx64;
char u[] = PRIu64;
resulting in
.globl u
.section ".data"
.align 3
.type u, @object
.size u, 3
u:
.string "lu"
.globl x
.align 3
.type x, @object
.size x, 3
x:
.string "lx"
(this is on a PPC64 system, GCC 3.4.1).
Segher
More information about the Linuxppc64-dev
mailing list