编写hello.c
使用不同直接处理源文件
预处理
gcc -E hello.c -o hello.i
编译
gcc -S hello.i -o hello.s
汇编
gcc -c hello.s -o hello.o
连接
gcc hello.o -o hello
查看运行结果
gdb调试
list
断点
函数调用暂停
makefile管理
函数分文件编写
makefile文件编写
运行结果
make
gcc -E hello.c -o hello.i
gcc -S hello.i -o hello.s
gcc -c hello.s -o hello.o
gcc hello.o -o hello
make