BusyTraveller BusyTraveller - 15 days ago 4
Linux Question

Whether Endianness is a property or hardware or software?

I have read that Intel and AMD follows little endian concept. Whether it is a property of hardware alone, or OS can override it ? I am telling this because processor serial number I am getting from windows and linux are in opposite order.

Answer

The endianess is based on hardware only.OS cannot overwrite it since it is the order in which data is written/ read from/to hardware. You might be getting the number in opposite order because the driver you are using might be swapping the bytes for you.