开发者

gcc -O4 optimization flag

What's the meaning of the -O4 optimization flag in gcc (3.2.3)? What's the diff开发者_开发百科erence to O3? When would you use one vs. the other?

The man pages only mention O, O0-3, Os, no word of the mysterious O4. Thanks!


There is no -O4 in 3.2.3. Everything above -O3 results in -O3 being chosen.


You can check what optimization are enabled for each level

gcc -c -Q -O3 --help=optimizers | grep enabled

It works at least for gcc 4.4.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜