Mail Archives: djgpp/1997/08/22/05:32:57
>I don't know offhand, but my understanding is that ANSI C doesn't make any
>determination of the internal respresentation of the bytes in a multi-byte
>integral type (short, int, long). I imagine that there aren't any such
>arbitrary architectures that aren't either little- or big-endian.
Wrong - I have seen (though I cannot remember which cpu families) byte
orders in a 32 bit integer of
1 2 3 4 (little-endian)
4 3 2 1 (big endian)
2 1 4 3 (_neither_)
and I wouldnt be surprised if somewhere out there some of the other
possible orderings existed!
- Raw text -