3 ms·
Yes, GCC can do tail-call optimization. What you can't do is rely up on in C. Lua has tail-call optimizations and because of that, you can rely upon it. Ther
by spc476 5y ago
Yes, GCC can do tail-call optimization. What you can't do is rely up on in C. Lua has tail-call optimizations and because of that, you can rely upon it. There is a difference.
- MaxBarraclough 5y agoRight, some languages guarantee tail-call optimisation in the language spec itself. The C standard doesn't do this.