Computer Instructions: Storage Order

In most computer architectures, every byte stored in main memory has its own address.

Many data structures, even integers, store more than 1 byte of data.

The question is, in what order should we store the bytes: left-to-right, or right-to-left?

This kind of storage order is called Endianess (based on the word 'end'):

  1. On a big endian device, the bytes of a data type are stored left-to-right (or top to bottom.)
  2. On a little endian device, the bytes of a data type are stored right-to-left (or bottom to top.)