Tail call elimination

from blog Notes on software development, | ↗ original
In this post we'll explore what tail calls are, why they are useful, and how they can be eliminated in an interpreter, a compiler targeting C++, and a compiler targeting LLVM IR. Tail callsA tail call is a function call made at the end of a block that returns the value of the call (some languages do not force this return requirement). Here are a...