Little-Endian Bytes
Byte Ordering
Byte Ordering
0xDEADBEEF
Big-Endian
MSB first
DE
AD
BE
EF
+0
+1
+2
+3
vs
Little-Endian
LSB first
EF
BE
AD
DE
+0
+1
+2
+3
Bytes are reversed!
Lowest address holds
least significant byte
ARM uses little-endian
Key Concepts
ARM = Little-Endian
Cortex-M33 uses LE
by default
Also: x86, RISC-V
Why It Matters
Memory dumps show
raw byte order
Must mentally flip
to get true value
GDB Example
x/4xb 0x2000
EF BE AD DE
= 0xDEADBEEF
x/xw = word view
GDB auto-corrects