gcc编译流程(示意图)
小知识点
gcc -E hello.c
会直接输出预处理过程到屏幕上,我们可以把它输出到文件
>
gcc -E hello.c > hello.i
>
会先清空hello.i文件内容再写入>>
gcc -E hello.c >> hello.i
>>
会追加写入
- 编译出的二进制文件可以用
file
命令查看
gcc -E hello.c
会直接输出预处理过程到屏幕上,我们可以把它输出到文件>
gcc -E hello.c > hello.i
>
会先清空hello.i文件内容再写入>>
gcc -E hello.c >> hello.i
>>
会追加写入file
命令查看