gcc 编译的过程:预处理、编译、汇编、链接
预处理: gcc -E test.c -o test.i
编译: gcc -S test.i -o test.s
汇编: gcc -c test.s -o test.o
链接:gcc test.o -o test
gdb调试
gcc -g a.c -o test
gdb test
调试中q退出
预处理: gcc -E test.c -o test.i
编译: gcc -S test.i -o test.s
汇编: gcc -c test.s -o test.o
链接:gcc test.o -o test
gcc -g a.c -o test
gdb test
调试中q退出