
Episode 89 - Forth
Advent of Computing
00:00
Why Do We Have to Shuffle the Stack in Every Function?
A call instruction actually tells the computer to push a return address on to the stack and then jump to the function. In practice, this means that you have to pop off the return address and store it, then grab your arguments and finally put the return address back on the stack. The shuffle that most languages require just gets thrown out the window. Fourth does away with this traditional dance by creating this thing called the return stack.
Transcript
Play full episode