Endian issues...final chapter

Jack, W8TEE


Jerry and I have continued to argue offline about passing data between machines that use different endians. (The endian idea is that an int data type can be organized in Big Endian or Little Endian, that is, are the two bytes organized as Hi-byte/Lo-byte or Lo-byte/Hi-byte.) His position is that C code is endian agnostic, meaning you don't have to worry about it. My position is that any communication between those two different endians must take it into consideration.

Jerry found a good discussion at:

In that reference, the Files and byte swap sections states:

    Endianness is a problem when a binary file created on a computer is read on another computer with different endianness.

which is what I was trying to say all along.

Anyway, I said I wouldn't waste anymore of the groups time on this, but I thought the Wikipedia source Jerry found kinda settles the issue...at least it has for me.

Jack, W8TEE

Join BITX20@groups.io to automatically receive all group messages.