YLCompiler

C语言编译过程

2015-02-08  本文已影响89人  aapu

预处理(Pre-Processing)

hello.c -> hello.i

gcc -E hello.c -o hello.i

编译(Compiling)

hello.i -> hello.s

gcc -S hello.i -o hello.s

汇编(Assembling)

hello.s -> hello.o

gcc -c hello.s -o hello.o

链接(Linking)

hello.o -> hello

gcc hello.o -o hello

上一篇 下一篇

猜你喜欢

热点阅读