π -> 10/4/24: Quiz and Endianness
π€ Vocab
β Unit and Larger Context
Memory is byte addressable
- Every byte has its own address, and smallest unit of memory we can allocate is a byte
CPU have word sizes
- A word size is the largest unit that the internal circuitry can store
- 32 bit CPU has a 32bit (4 byte) word size
This leads to endiannes:
2 Choices:
Little Endian:
- Least significant byte of a word is stored at the lowest part of an address
- Used by Intel
- Stored βbackwardsβ
Big Endian
- Most significant stored at the lowest part
- This is done on the internet
- Stored βforwardβ
Storing 0x01020304:
| Address | 100 | 101 | 102 | 103 |
|---|---|---|---|---|
| Big | 0x01 | 0x02 | 0x03 | 0x04 |
| Little | 0x04 | 0x03 | 0x02 | 0x01 |
βοΈ -> Scratch Notes
- Log as you go through entry
π§ͺ-> Example
- List examples of where entry contents can fit in a larger context
π -> Related Word
- Link all related words