📜  g++ 优化标志 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:50.436000             🧑  作者: Mango

代码示例1
-O0            //optimization for compilation time (default)    
-O1 or -O    //optimization for code size and execution time
-O2            //optimization more for code size and execution time
-O3            //optimization even more for code size and execution time
-Os            //optimization for code size    
-Ofast        //O3 with fast none accurate math calculations