3 ms·
How is a "proper tail call" implemented if you aren't talking about conversion to iteration? I found the following article helpful. http://www.drdobbs.com/jvm
by ectoplasm 11y ago
How is a "proper tail call" implemented if you aren't talking about conversion to iteration? I found the following article helpful.
http://www.drdobbs.com/jvm/tail-call-optimization-and-java/240167044 http://www.drdobbs.com/jvm/tail-call-optimization-and-java/2...
- sklogic 11y agoUsually it is implemented by reshuffling stack frame + jumping to the call destination. See how it is done in .NET, for example. Do not confuse tail recursion, which is the least interesting narrow case of a tail call, with tail calls in general.