Chapter 3

Return errors


RAII (Resource Acquisition is Initialization)


Little and Big Endian

IEC vs Metric size prefixes

Executable file segments

  1. Text segment: executable machine code for all program functions
  2. Data segment: initialized global and static variables
  3. BSS segment: Block Started by Symbol: uninitialized global/ static variables
  4. Read only data segment: read-only (constant) global data, e.g. PI = 3.14

Program memory types:

  1. Program stack: stores local variables within functions
  2. Heap: dynamically allocated memory (malloc/free)

Memory alignment

CPU Registers and buses

Virtual memory

Memory access speeds

Cache hierarchy

L cache

PS4 architecture

PS3 architecture

PS3 Architecture

PS2 architecture

PS2 Architecture