Memory

#folder

Table

Memory size prefixes:

SI IEC
k kilo Ki kibi
M mega Mi mebi
G giga Gi gibi
T tera Ti tebi
P peta Pi pebi
E exa Ei exbi

Since we work in binary, it makes more sense to use IEC units

Multi-Byte Ordering (Endianness)

Example

x86 uses little endian, ARM is bi-endian.

Alignment

Definition

A memory access is "naturally aligned" if the address is a multiple of the data size

E.g word-size data should be stored at addresses that are multiples of 4

ARM recommends naturally aligned memory accesses