Reputation: 4946
There some very good descriptions on SO, as well as all over the web, about how LLVM optimizes code. But these fail to answer my specific question.
In Xcode, there are various options for code optimization in the project and target settings. I understand the need for no optimization during development, but why would one choose anything other than Fastest,Smallest[-Os]
when compiling a release build.
Upvotes: 4
Views: 2369
Reputation: 41801
In most situations, -Os is a good choice. It has a nice mix of optimizing for space and optimizing for speed.
However, the other options do have some appeal:
Upvotes: 4