πŸ“— -> 10/4/24: Quiz and Endianness


Lecture Slides

🎀 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:

Address100101102103
Big0x010x020x030x04
Little0x040x030x020x01

βœ’οΈ -> Scratch Notes

  • Log as you go through entry

πŸ§ͺ-> Example

  • List examples of where entry contents can fit in a larger context
  • Link all related words