April 2020
Intermediate to advanced
412 pages
9h 58m
English
Endianness defines the order in which bytes that represent large numerical values are stored in memory.
There are two types of endianness:
| Offset in memory | Value |
| ptr | 0x01 |
| ptr + 1 | 0x02 |
| ptr + 2 | 0x03 |
| ptr + 3 | 0x04 |
Examples of big-endian architectures are AVR32 and Motorola 68000.
| Offset in memory | Value |
| ptr | 0x04 |
| ptr + 1 | 0x03 |
| ptr + 2 | 0x02 |
| ptr + 3 | 0x01 |
The x86 architecture is little-endian.