2 ms·
Thanks, could you explain the "indirections" in this context? I haven't heard this before.
by bogomipz 11y ago
Thanks, could you explain the "indirections" in this context? I haven't heard this before.
- barrkel 11y agoArray accesses are implicit indirections. The base, index and element size are used to compute the address of a location which is then indirected to store or load. Without range checking, array accesses can be used to read or write arbitrary locations in memory, just like pointers.
- bogomipz 11y agoAh ok right, that makes perfect sense. Thanks.