4 ms·
It'd maybe be nice to be able to mark which code gets optimized. If I could make all std as "don't debug this and keep it optimized" I would. I know some debugg
by gernb 4y ago
It'd maybe be nice to be able to mark which code gets optimized. If I could make all std as "don't debug this and keep it optimized" I would. I know some debuggers have the option to at least not step into certain code that that doesn't solve the optimization issue
- TillE 4y agoAs others have mentioned, you can accomplish the equivalent by using a release build with pragmas to turn off optimizations in certain sections of code.
- gumby 4y agoYou don't have to compile every file with the same flags. You can vary them with each invocation of the compiler, so trivially get what you want at the translation unit level.
- triknomeister 4y agoAnd get equivalent of ODR errors.
- gumby 4y agoI really doubt flags like -g or -O if going to cause those issues.