3 ms·
-O0 is unnecessarily bloated (can do lots of unnecessary load data to reg, save to stack, load back same reg again) which also makes it hard to read. I find -Og
by gggggggggg554fh 6y ago
-O0 is unnecessarily bloated (can do lots of unnecessary load data to reg, save to stack, load back same reg again) which also makes it hard to read.
I find -Og (on gcc) or -O1 to be the sweet spot.
- 29athrowaway 6y agoYes, but it is a starting point. You first learn to crawl, then walk, then run. You don't start running right away.