C++ 的编译过程
2024-10-19 04:29:17
Recall that g++ is not actually the C++ compiler – it is a driver program that hides a lot of the complexity of the compilation process from us. What is actually going on here is:
- The C++ preprocessor is called to handle things like #include.
- Preprocessed text is passed to the actual C++ compiler, which produces compiled assembly language code.
- The assembly language code is assembled by the GCC assembler, producing an object code file.
- The object code file is linked with the C++ libraries by the linker to produce the final executable.
- The intermediate files are disposed of.
- 调用 C++ 预处理器来处理 #include 等问题。
- 预处理的文本传递给实际的 C++ 编译器, 它生成编译的汇编语言代码。
- 汇编语言代码由 GCC 汇编程序组装, 生成一个对象代码文件。
- 链接器将对象代码文件与 C++ 库链接, 以生成最终可执行文件。
- 中间文件被释放。
最新文章
- linux下的ssh工具之,本地上传到linux服务器and Linux服务器文件另存为本地。非sftp工具。
- 使用java mail 发送邮件
- Mybatis中SqlMapper配置的扩展与应用(1)
- c/s 自动升级(WebService)
- BZOJ3240 [Noi2013]矩阵游戏
- 帝国cms栏目自定义字段首页调用
- struts2 redirect 配置动态传递参数
- HDU 3308 LCIS(线段树)
- comboBox绑定数据库、模糊查询
- 《白手起家Win32SDK应用程序》(完整版+目录)
- PS基础学习
- C# 泛型初探
- 不错的 HttpHelper类 c#
- 原来你是这样的JAVA[03]-继承、多态、抽象类
- Maven 核心原理
- Javascript高级编程学习笔记(64)—— 事件(8)键盘与文本事件
- Socket基础之-启动异步服务侦听
- iOS之iOS11、iPhone X、Xcode9 适配指南
- Bootstrap学习记录-1.Navigation
- Hash碰撞 &; 拒绝服务漏洞
热门文章
- JavaSE_XMind总结
- OC SEL (@selector) 原理及使用总结(转)
- unity 读取外部exe程序控制台信息
- Python基础(3) - 数据类型:1数字类型
- resteay上传单个文件/多个文件到本地
- AngularJS的日期格式化有两种形式
- [转]Consuming a OData Service in a Client Application (WCF Data Services)
- datatable 转字符串
- Hadoop实战之二~ hadoop作业调度详解(1)
- express常用中间件