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?
?
?