Don&#x27;t you need a lower level language (than even assembly and maybe even some sort of hardware support)? Virtual memory abstracts away whether the address is in RAM or disk. Going a step further, you need to undo even one more layer of abstraction so you know whether you&#x27;re accessing L1, L2, or main memory.<p>But to be honest I think just malloc is a decent abstraction. You control memory layout and the rest is having algorithms with good access patterns.