首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

gcc,g++编绎进程

2012-09-20 
gcc,g++编绎过程1.The Preprocessor? expand macros and included header files. ??cpp hello.c hello.

gcc,g++编绎过程

1.The Preprocessor
? expand macros and included header files. ?

?

cpp hello.c >> hello.i

??
?

2.The Compiler
? preprocessed source code to assembly language,for a specific processor ?

?

gcc -Wall -S hello.i
?


3.The assembler
? convert assembly language into machine code and generate an object file

?

as hello.s -0 hello.o
?

?

4.Linker
? linking of object files to create an executeable,in practice,an executeable requires many external functions from system and c run-time(crt) libraries.

?

gcc hello.o
?

?

?

热点排行