Lurker News
Back to discussion

Comment by netheril96

netheril961 reply#
> The exact same argument could be made for any compile-time optimization.

No.
For other optimization, the difference is the speed of execution. For tail call optimization, the difference can be normal execution and stack overflow.

MereInterest1 reply#
Any optimization that removes an unnecessary stack allocation could also be the difference between normal execution and stack overflow, due to decreasing the size of the stack frame.
netheril96#
But the effect is much more likely in tail recursive cases.