r/computerscience • • 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

24 comments sorted by

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.

4

u/servermeta_net Jan 28 '26

No thank you for the pointer! I added their paper to my to read list!

Just to be clear, I don't think my approach is smart, I'm just exploring to see if it's worth publishing.