4 ms·
Extremely bad advice. There is no point in debugging something that bears no relation to the software you release, and compiler optimizations is the only reason
by otabdeveloper4 3y ago
Extremely bad advice. There is no point in debugging something that bears no relation to the software you release, and compiler optimizations is the only reason to use C or C++ in the first place.
- CyberDildonics 3y agoIt's extremely good advice. Debugging is all about simplifying things and finding the problem. Deal with your program without optimizations first. Once that is set, then you can deal with any differences due to optimizations, which should be extremely rare, because that would be a bug anyway. Mixing two sources of complexity is extremely bad advice.
- flohofwoe 3y agoOptimizations usually don't change the behaviour of a program (unless you hit UB, but that's what UBSan is for).