3 ms·
Don'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
by rawnlq 10y ago
Don'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're accessing L1, L2, or main memory.
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.