4 ms·
Curious to hear more!
by ipython 5y ago
Curious to hear more!
- fasquoika 5y agoI'm guessing this is referring to the fact that early versions of Fortran stored return addresses in specific memory locations (at the end of the function definition IIRC) instead of on a call stack. This is why those versions of Fortran couldn't do recursion, because the new return address would overwrite the old one.
- zh3 5y agoIt seems weird now, but natural at time. Point a register at the data following the call, rely on the caller advancing over the argument and jumping back to the (presumed) code after the data. The stack isn't involved at all... Edit: found this on the 'net:- https://retrocomputing.stackexchange.com/questions/9328/does-the-in-code-argument-passing-conventions-used-on-pdp-11s-have-a-name https://retrocomputing.stackexchange.com/questions/9328/does...