立即学习:https://edu.csdn.net/course/play/1733/26775?utm_source=blogtoedu
gcc编译过程
预处理阶段
gcc -E hello.c -o hello.i
编译阶段
gcc -S hello.i -o hello.s
汇编阶段
gcc -c hello.s -o hello.o
链接阶段
gcc hello.o -o hello
一般情况下:
gcc hellogcc.c -o hgcc
静态库编译
gcc -static hellocgcc.c -o h2