静态编译过程的简单拆解 #include <stdio.h> int main(int argc,char *argv[]) { printf("hello world\n"); return 0; } root@:~# gcc hello.c -o hello 上面是最简单的一段C语言代码,编译成hello可执行文件后,./hello就可以打印出hello world。当我们执行gcc编译hello.c时,编译器其实进行了大量的操作以便生成我们想要的可执行文件。 简单来说,执行过程可分为