其他分享
首页 > 其他分享> > GCC编译中间文件

GCC编译中间文件

作者:互联网

编译中间文件

参数选项:
-save-temps Do not delete intermediate files.
-save-temps= Do not delete intermediate files.

示例:gcc -save-temps test.c -o test

输出文件:
test.i :预编译后的文件
test.s :编译后生成的汇编文件
test.o :汇编后生成的目标文件
test :生成的可执行文件

编译中间代码

参数选项:
-fdump-tree-all 把编译的中间代码全部输出到文件

示例:gcc -fdump-tree-all code.c 得到

输出文件:
查看 code.c.012t.cfg

标签:文件,GCC,示例,temps,编译,test,save
来源: https://www.cnblogs.com/cool-claim/p/16385256.html