3 ms·
That's one of those sad realities of Worse is Better in action. Definitely a disadvantage. Far as why big-endian was The Right Thing, drfuchs had this to say:
by nickpsecurity 11y ago
That's one of those sad realities of Worse is Better in action. Definitely a disadvantage. Far as why big-endian was The Right Thing, drfuchs had this to say:
"Because big-endian matches how most humans have done it for most of history ("five hundred twenty one" is written "521" or "DXXI", not "125" or "IXXD"). Because the left-most bit in a byte is the high-order bit, so the left-most byte in a word should be the high-order byte. Because ordering two 8-character ascii strings can be done with a single 8-byte integer compare instruction (with the obvious generalizations). Because looking for 0x12345678 in a hex dump (visually or with an automatic tool) isn't a maddening task. Because manipulating 1-bit-per-pixel image data and frame buffers (shifting left and right, particularly) doesn't lead to despair. Because that's how any right-thinking person's brain works."
- wolfgke 11y agoIt is not obvious whether big or little endian is better. For a nice overview read https://fgiesen.wordpress.com/2014/10/25/little-endian-vs-big-endian/ https://fgiesen.wordpress.com/2014/10/25/little-endian-vs-bi...
- nickpsecurity 11y agoThanks for the feedback. I'll add it to my collection for this subject and think on it in the future.
- nradov 11y agoThis issue has been argued incessantly for 40+ years. You should read the famous article "On Holy Wars and a Plea for Peace". https://www.ietf.org/rfc/ien/ien137.txt https://www.ietf.org/rfc/ien/ien137.txt There is no clear "right" answer.