sizeof(long long)!=2*sizeof(long) on Alpha under OSF

Skip to first unread message

Anton Ertl

Sep 15, 1995, 3:00:00 AM9/15/95
The GNU C manual states (and has done so for years):

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.

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 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

Reply all
Reply to author
0 new messages