This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Long long printing problems with newlib 1.16.0?
- From: Vincent Rivière <vincent dot riviere at freesbee dot fr>
- To: newlib at sourceware dot org
- Date: Thu, 03 Jan 2008 21:09:28 +0100
- Subject: Re: Long long printing problems with newlib 1.16.0?
- References: <09D6315A-E76A-4A67-9335-1805380B6A79@ukos.ch>
Hello, Franzi.
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? Whit the previous version of the newlib 1.15.0, the
flag "--enable-newlib-io-long-long" was enough.
No problem on my Atari ST (68000).
I get the same result than on your OSX host.
I use the latest stable versions on a Cygwin host:
BINUTILS_VER=2.18
GCC_VER=4.2.2
NEWLIB_VER=1.16.0
I have configured newlib with options very similar to yours.
--
Vincent Rivière