3 ms·
You can consider the entire virtual memory space to be a big vector, where a pointer is just an index into it!
by saagarjha 8y ago
You can consider the entire virtual memory space to be a big vector, where a pointer is just an index into it!
- photon-torpedo 8y agoYes, that's exactly how we do it in Fortran 77.
- jstimpfle 8y agoHowever that's a pretty poor vector. It's not homogeneous (you put things of different shapes inside). That also implies you need sophisticated memory management, leading to further overheads. You cannot meaningfully iterate it.