Cesar Rabak <> writes:
> Ray Dillinger escreveu:
[...]
>> #include <stdio.h>
>> main()
>> {
>> long long int foo = 10000000001LL;
>> printf("%lld\n", foo); }
>>
> In a Mandriva 2006 Linux with gcc 4.0.3 your code compiled gives:
> $ ./a.out
> 10000000001
>
> which I believe is what you expect.
>
> As a double check, I attempted:
>
> $ gcc-3.3.6 -o a-3.3.6 suse.c
> $ ./a-3.3.6
> 10000000001
> $ gcc-2.96 -o a-2.96 suse.c
> $ ./a-2.96
> 10000000001
>
> where gcc-?-? are respective older versions.
gcc is a compiler, not a complete implementation. It typically uses
whatever runtime library is provided by the OS. On Linux, that's
generally glibc; on other systems, it's likely to be something else.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.