64 bit architectures and C/C++

Doug Gwyn gwyn at smoke.brl.mil
Tue May 7 06:49:45 AEST 1991


In article <TMB.91May3225038 at volterra.ai.mit.edu> tmb at ai.mit.edu (Thomas M. Breuel) writes:
>In essence, this is actually what the C standard does, if one
>continues to use the current data types with roughly their current
>meaning: "short" is close to, and at least 16 bits, and "long" is
>close to, and at least 32 bit. The emphasis here is on "close to", and
>this should probably be made explicit in the standard, since
>programmers pragmatically do, and need to, rely on it to be able to
>estimate what the space requirements of their programs will be.

It was not the intention of the C standard to require the "close to"
attribute as you describe it.  Some architectures are such as to make
that an impractical implementation, and on such architectures a char
might even be 128 bits.  (However, most implementations will make an
exception for "char" and pack them fairly tightly into a word, even
though it does slow down operations on char type considerably.)



More information about the Comp.lang.c mailing list