CPU Cache Optimization Purpose Guide agents through cache-aware programming: diagnosing cache misses with perf, data layout transformations (AoS→SoA), false sharing detection and fixes, prefetching, and cache-friendly algorithm design. Triggers - "My program has high cache miss rates — how do I fix it?" - "What is false sharing and how do I detect it?" - "Should I use AoS or SoA data layout?" - "How do I measure cache performance with perf?" - "How do I use builtin prefetch?" - "My multithreaded program is slower than single-threaded due to cache" Workflow 1. Measure cache performance 2. Cach…