This is part of a guide that you can find here.

Bytes are loaded in different order, called endianness.

  • Big-endian: the digits with the highest valence are initially.
  • Little-endian: the digits with lowest valence are beginning.

Mainframe processors use the big-endian format, some RISC architectures, minicomputers and TCP/IP also tend to use big-endian.

  • Address: 0xffff0000
  • Word: \xAA\xBB\xCC\xDD
Memory Address0xffff00000xffff00010xffff00020xffff0003
Big-EndianAABBCCDD
Little-EndianDDCCBBAA