centos@centos-01:~/etc/cprogram$ gcc -s example.c -o example.s centos@centos-01:~/etc/cprogram$ gcc -c example.c -o example.o centos@centos-01:~/etc/cprogram$ gcc example.o -o example centos@centos-01:~/etc/cprogram$ ls -al example -rwxrwxr-x 1 centos centos 7163 9月 17 00:24 example centos@centos-01:~/etc/cprogram$ ./example
1
2
3
4
5
6
7
8
9
如果简单的要一个可执行文件的话,就
gcc example.c -o example gcc -o test c1.c c2.c
==============
警告: