C & Memory

Chapter 11: Undefined Behavior (UB) — Why Optimizers Seem 'Evil'

Understanding C's contract with optimizing compilers: signed overflow, uninitialized reads, strict aliasing (`memcpy` type punning!), sequence points, and writing UB-free code.