intermediateNovember 2, 2026 · 39 min read
Cache: lines, associativity and what happens on a miss
How a cache finds data by tag, index and offset, what happens on a miss, and how associativity and replacement change the hit rate.
3 posts
How a cache finds data by tag, index and offset, what happens on a miss, and how associativity and replacement change the hit rate.
How SRAM, DRAM, flash and disk store a bit inside, why SRAM is fast and expensive, why DRAM is slow and cheap, and what keeps data after power loss.
How the ALU adds, subtracts, compares and does logic, what the Z, N, C and V flags mean, and what registers are for inside the CPU.