程序的编译过程
为了说明程序的编译过程,我们用经典的hello world程序作为例子
#include <stdio.h>
int main(int argc, char const *argv[])
{
printf("hello world!!!\n");
return 0;
}
在linux系统中,我们用GCC编译器将源程序文件helloworld.c编译成可执行目标文件helloworld。
zengwh@zengwh:~/test_code$ gcc helloworld.c -o hello
zengwh@zengwh:~/test_code