[英]gcc -O4 optimization flag
What's the meaning of the -O4 optimization flag in gcc (3.2.3)? gcc(3.2.3)中-O4优化标志的含义是什么? What's the difference to O3? 与O3有什么区别? When would you use one vs. the other? 你什么时候使用一个与另一个?
The man pages only mention O, O0-3, Os, no word of the mysterious O4. 手册页只提O,O0-3,Os,没有神秘的O4字。 Thanks! 谢谢!
There is no -O4 in 3.2.3. 3.2.3中没有-O4。 Everything above -O3 results in -O3 being chosen. 高于-O3的所有结果都会导致选择-O3。
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. 它至少适用于gcc 4.4。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.