编译 gcc -c sun.c 产生了一个对象文件sun.o 链接 gcc -o sun sun.o 这时sun.o所在的目录将会生成sun可执行文件 或者以上2步合并 gcc hello.c -o hello 执行 ./sun