您的当前位置:首页正文

C语言编译过程

来源:要发发知识网

预处理(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