r/computerscience • u/servermeta_net • Jan 28 '26
CPUs with addressable cache?
I was wondering if is there any CPUs/OSes where at least some part of the L1/L2 cache is addressable like normal memory, something like:
- Caches would be accessible with pointers like normal memory
- Load/Store operations could target either main memory, registers or a cache level (e.g.: load from RAM to L1, store from registers to L2)
- The OS would manage allocations like with memory
- The OS would manage coherency (immutable/mutable borrows, collisions, writebacks, synchronization, ...)
- Pages would be replaced by cache lines/blocks
I tried to search google but probably I'm using the wrong keywords so unrelated results show up.
27
Upvotes
View all comments
Show parent comment
8
u/thesnootbooper9000 Jan 28 '26
Are you aware of the Unison project that was run out of KTH? They were doing optimal code generation, and doing it much faster than several hours by using techniques like constraint programming to solve the NP-hard parts.