记录Og优化的特殊含义:
摘抄自:https://wiki.gentoo.org/wiki/GCC_optimization
-O
Warning
Using -O3
or -Ofast
may cause some packages to break during the compilation.
Note
To print all packages that were built with specified CFLAGS/CXXFLAGS it's possible to use the following command: grep Ofast /var/db/pkg/*/*/CFLAGS
Next up is the -O
variable. This variable controls the overall level of optimization. Changing this value will make the code compilation take more time and will use much more memory, especially as the level of optimization is increased.
There are seven -O
settings: -O0
, -O1
, -O2
, -O3
, -Os
,