"Richard Cavell" <> wrote in message
news:cvpg29$3ai$...
> Hi,
>
> Is there some kind of canonical list, or would someone like to give a
> brief rundown, as to:
>
> sizeof(int)
> sizeof(long int)
> sizeof(long long)
> etc
>
> or perhaps even the vector types, for current hardware (Pentium
> 4/Athlon/G4/G5/Playstation 3/etc) used with current compilers? Or perhaps
> a list of what size int_t you can define and expect the processor to
> handle natively?
usually an int is the size of the register used, on the 286 this was 16
bits, a long was 32.
on 386 protected, 486, int is 32 bits, and long int, is 32 bits as well,
Double Word is 64 bits.
A char is always 8 bits. The ratio of Char size to int size will tell you
the hardware type, ie the register width.
|