Possible Duplicate:
Performance of built-in types : char vs short vs int vs. float vs. double
Hi. Assume, that you have 32-bit processor. Are 8-bit char
and 16-bit short int
types slower than native 32-bit int
?
What about using 64-bit long long int
?
Are this datatypes supported by hardware by default, or they are all transformed into 32-bit data anyway, by using additional instructions?
In case, that I have to store a small amount of chars, isn't it faster to store them as ints?