c++源文件到可执行文件的过程

1、预处理(preprocessor):对#pragma、#include#define#ifdef/#endif#ifndef/#endifinline内联函数等进行处理

2、编译(compiler):将源码编译为汇编代码,需要编译器

3、汇编(assembler):将汇编代码汇编为目标代码,需要汇编器

4、链接(linker):将目标代码链接为可执行文件,需要链接器

原文地址:https://www.cnblogs.com/suntp/p/6426353.html