This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
printf and "unsigned long long" numbers
- From: "Franzi Edo." <edo dot franzi at ukos dot ch>
- To: newlib at sourceware dot org
- Date: Fri, 18 May 2007 18:58:40 +0200
- Subject: printf and "unsigned long long" numbers
Hi,
I tried to use printf in a cross 68k machine. The print "unsigned
long long" seems not to work.
unsigned long long a = 9888994872930475ull;
printf("%llu", a)
-> gives as a result 2302461 on my cross target
68k
-> gives as a result 9888994872930475 on my host machine OSX
How do I have to configure newlib to correctly support long long int
on embedded targets?
Any advises?
My configuration:
TARGET=m68k-elf
BINUTILS_VER=2.17.50
GCC_VER=4.2.0
NEWLIB_VER=1.15.0
Regards
Edo.