Re:But the question is: will it recurse? Part 1: fibonacci(40)
by aklein on Monday October 10, 2011 @10:54AM
(#3094008)
O1 probably sees you don't use the result or have side effects in fibonacci(40) and optimizes the call away...
[ Parent
| on HN ]
Re:But the question is: will it recurse? Part 1: fibonacci(40)
by SaltwaterC on Monday October 10, 2011 @11:01AM
(#3094036)
One of the reasons I get why people advise against certain levels of optimization without understanding its implications. As I write few lines of C code, usually I don't bother with deep understanding of all the concepts of compiler optimization.