GNU C supports data types for integers that are twice as long as
`long int'. Simply write `long long int' for a signed integer, or
`unsigned long long int' for an unsigned integer.
main()
{
printf("long:%d,long long:%d\n",sizeof(long),sizeof(long long));
}
The preceding program outputs
long:8,long long:8
Machine, OS, and gcc version:
[a0:/tmp:548] uname -a
OSF1 a0.complang.tuwien.ac.at V3.2 214.61 alpha
[a0:/tmp:549] gcc -v
Reading specs from /usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.7.0/specs
gcc version 2.7.0
Compiled with "gcc xxx.c"
I think that DEC specified this long long size. Still, I would like to
see a -mlonglong128 flag for the Alpha. If long longs are not by
default twice as long as longs on all machines, this should be
mentioned in the manual.
- anton