Possible store ordering of data:
Ordering in a register:
+--------+--------+--------+--------+
| byte 1 | byte 2 | byte 3 | byte 4 |
+--------+--------+--------+--------+
Possoible store orderings in memory:
(1) Left-to-right order (2) Right-to-left order
Memory:+--------+ Memory:+--------+
| byte 1 | | | byte 4 | ^
+--------+ | +--------+ |
| byte 2 | | | byte 3 | |
+--------+ | +--------+ |
| byte 3 | | | byte 2 | |
+--------+ | +--------+ |
| byte 4 | V | byte 1 | |
+--------+ +--------+
|
The big endian ordering will store the bytes from left-to-right in memory (the most-significant byte first):
The big endian ordering will load the bytes from left-to-right from memory (the most-significant byte first):
The little endian ordering will store the bytes from right-to-left in memory (the least-significant byte first):
The little endian ordering will load the bytes from right-to-left from memory (the least-significant byte first):
The choice of store ordering is manufacturer dependent:
|
|
Gulliver's Travels (a satire by Jonathan Swift)
|