Mail Archives: djgpp/1997/12/11/05:01:32
John M. Aldrich wrote:
> The only guarantee that you have is the following:
>
> sizeof(short) >= 2 bytes (16 bits)
> sizeof(long) >= 4 bytes (32 bits)
> sizeof(short) <= sizeof(int) <= sizeof(long)
>
>
> (*) There are rare systems that use more than 32 bits for long
> integers. If you expect your code to be compiled on one of these, you
> must make allowances for them by using appropriate #ifdef blocks to
> detect the systems in question. In most cases, however, these systems
> use such different architectures that the original purpose of absolute
> type sizes (to deal with binary data files) becomes useless.
>
gcc also supports "long long int " -- 64 bits
- Raw text -