64 bit architectures and C/C++
Blair P. Houghton
bhoughto at pima.intel.com
Wed May 1 13:19:09 AEST 1991
In article <1991Apr30.140217.7065 at world.std.com> wmm at world.std.com (William M Miller) writes:
>bhoughto at pima.intel.com (Blair P. Houghton) writes:
>> short <the shortest integer the user should handle; >= 8 bits>
>Actually, ANSI requires at least 16 bits for shorts (see SHRT_MIN and
>SHRT_MAX in <limits.h>, X3.159-1989 2.2.4.2.1).
I had my brain packed-BCD mode that day, apparently :-/...
The minimum sizes for the four integer types are:
char 8 bits
short 16
int 16
long 32
Other than that, one need only ensure that short, int, and
long are multiples of the size of a char, e.g., 9, 27, 36, 36.
--Blair
"Hike!"
More information about the Comp.lang.c
mailing list