c ++ program editing, preprocessing, compile, link, an executable file

1. Edit: that is written in C / C ++ program  
2. Pretreatment: The new assembly corresponding to C / C ++ preprocessing program instructions. After pretreatment, will not produce a macro definition, there is no conditional compilation directives, no special symbols in the output file, meaning the file with the original file is no different, but different content.  
3. Compile: the file complete a series of pre-lexical analysis, syntax analysis, the semantic analysis and optimization, to produce the corresponding assembly language file.  
4. Links: The linker a target file (perhaps there will be a library file) linked together to generate a complete executable program. The main job of the linker is relevant target file connected to each other, which is the symbol referenced in a document connected with the symbol defined in another file, so that all these objects become a by the operating system load unified whole execution. In this process you will find the called function is not defined.  

Guess you like

Origin www.cnblogs.com/didiaoxiaoguai/p/11681730.html