Originally Posted by
matsp
Yes, it matters, because the compiler will still order bytes in the "little" or "big" endian way.
In a big endian machine, you expect the high bits to come first. Yes, the most significant BYTE is still the most significant BYTE, and bits within it are still in a determined order, but if you look at the bits, they are:
76543210
bbbbaaaa
whilst a little endian
01234567
aaaabbbb
Of course, if you have an unsigned char that you "and with 0x0F" or "and with 0xF0", both architectures will still work the same.
--
Mats