6 ms·
O1 probably sees you don't use the result or have side effects in fibonacci(40) and optimizes the call away...
by aklein 15y ago
O1 probably sees you don't use the result or have side effects in fibonacci(40) and optimizes the call away...
- SaltwaterC 15y agoOne 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.