gcc预处理、编译、汇编、链接

预处理、编译、汇编、链接:

 1 #include <stdio.h>
 2 
 3 /*
 4 // Pre-processing
 5 gcc -E hello.c -o hello.i
 6 // Compiling
 7 gcc -S hello.i -o hello.s
 8 // Assembling
 9 gcc -c hello.s -o hello.o
10 // Linking
11 gcc hello.s -o hello
12 */
13 
14 int main()
15 {
16     printf("Hello World\n");
17 
18     return 0;
19 }

 

posted on 2019-11-19 10:37  Alvin2012  阅读(268)  评论(0编辑  收藏  举报

导航