开发者

gcc -O4 optimization flag

开发者 https://www.devze.com 2023-01-10 14:52 出处:网络
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?

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

精彩评论

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

关注公众号