How to implement tail calls in a custom VM

Posted by DeadMG on Stack Overflow See other posts from Stack Overflow or by DeadMG
Published on 2010-05-13T14:10:10Z Indexed on 2010/05/13 14:34 UTC
Read the original article Hit count: 192

Filed under:
|
|

How can I implement tail calls in a custom virtual machine?

I know that I need to pop off the original function's local stack, then it's arguments, then push on the new arguments. But, if I pop off the function's local stack, how am I supposed to push on the new arguments? They've just been popped off the stack.

© Stack Overflow or respective owner

Related posts about c++

Related posts about vm