by oivaksef · 6y ago · 0 comments
Sort of like special purpose performance instructions like SIMD but on the memory side
The Cell from Sony did have explicit cache control (I think) and it was notoriously difficult to program for.
The real reason cache isn't handled explicitly though is because it isn't necessary. Getting good performance and cache usage can be done at the C++ level, you just have to know how the CPU works and access memory linearly so it can be prefetched. I've tried to use prefetch instructions and beating the out of order buffer in the CPU is actually very difficult.
For perf, I'd much rather have larger L1, or a (much) bigger register file.