News for hackers. Stuff that matters.
Re:What can be learned from studying long gone development p... by ufo on Sunday August 15, 2021 @09:22PM (#28194071)
The C standard doesn't mandate tail-call optimization, but at least GCC and Clang are pretty good at doing it (-foptimize-sibling-calls, which is turned on with -O2)
Re:What can be learned from studying long gone development p... by masklinn on Monday August 16, 2021 @06:31AM (#28196619)
That it is only an optimisation ensures it will eventually fail to trigger at the least convenient possible moment.

Unless your C implementation has TCE, don’t assume recursion is optimised.