Comment on But the question is: will it recurse? Part 1: fibonacci(40)parentComments−aklein14yO1 probably sees you don't use the result or have side effects in fibonacci(40) and optimizes the call away...−SaltwaterC14yOne 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.
Comments
O1 probably sees you don't use the result or have side effects in fibonacci(40) and optimizes the call away...
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.