程序编译链接

预处理:.c --> .i

$ gcc -E hello.c -o hello.i

编译: .i 或 .c --> .s

$ gcc -S hello.i -o hello.s

汇编:.s --> .o

$ gcc -c hello.s -o hello.o

链接:.o --> 可执行程序

$ gcc hello.o -o app

猜你喜欢

转载自blog.csdn.net/mkerj/article/details/86129954
今日推荐