20 ms·
Compilers can easily lower tail recursion into loops, but not general tail calls between arbitrary (possibly unknown, indirect) functions. The best they can do
by mibsl 4y ago
Compilers can easily lower tail recursion into loops, but not general tail calls between arbitrary (possibly unknown, indirect) functions.
The best they can do are trampolines, which come with a high performance cost.