64 bit architectures and C/C++
Raul Rockwell
rockwell at socrates.umd.edu
Sat May 4 16:19:28 AEST 1991
Richard A. O'Keefe:
An anecdote which may be of value to people designing a C compiler for
64-bit machines: there was a UK company who built their own micro-coded
machine, and wanted to put UNIX on it. Their C compiler initially had
char=8, short=16, int=32, long=64 bits, sizeof (int) == sizeof (char*).
They changed their compiler in a hurry, so that long=32 bits; it was
less effort to do that than to fix all the BSD sources. ...
eh??
any reason they couldn't have compiled with -Dlong=int ? (Or, if you
wanna be fancy, you could
#define long _long
typedef int _long;
seems rather silly to break the compiler just because of old code...
Raul Rockwell
More information about the Comp.lang.c
mailing list