4 ms·
Which compilers can rearrange fib, with two recursive calls, into being tail recursive?
by SeanLuke 8y ago
Which compilers can rearrange fib, with two recursive calls, into being tail recursive?
- FeepingCreature 8y agoIf it knows it's a pure function, it's possible. It'd have to be a very specific optimization pass though.
- jcranmer 8y agoAny LLVM-based compiler. GCC.