gcc 编译的四个阶段

gcc/g++ 编译的四个阶段:

预处理,不编译、不汇编、不链接
-E Preprocess only; do not compile, assemble or link

只编译,不汇编,不链接
-S Compile only; do not assemble or link

编译和汇编,不链接
-c Compile and assemble, but do not link

编译、汇编、链接
-o <file> Place the output into <file>

PS:更详细,可查看帮助:

gcc/g++ --help

你可能感兴趣的:(C++,c,gcc,C#)