Coding for Byte Order

According to Rob Pike, your code almost never needs to take into account the endianness of the machine it’s running on. From his blog post (linked below):

“The entire Plan 9 system ran, without architecture-dependent #ifdefs of any kind, on dozens of computers of different makes, models, and byte orders. I promise you, your computer’s byte order doesn’t matter even at the level of the operating system.”

http://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html

Leave a Reply

Your email address will not be published. Required fields are marked *