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++ 库链接, 以生成最终可执行文件。
  • 中间文件被释放。

最新文章

  1. linux下的ssh工具之,本地上传到linux服务器and Linux服务器文件另存为本地。非sftp工具。
  2. 使用java mail 发送邮件
  3. Mybatis中SqlMapper配置的扩展与应用(1)
  4. c/s 自动升级(WebService)
  5. BZOJ3240 [Noi2013]矩阵游戏
  6. 帝国cms栏目自定义字段首页调用
  7. struts2 redirect 配置动态传递参数
  8. HDU 3308 LCIS(线段树)
  9. comboBox绑定数据库、模糊查询
  10. 《白手起家Win32SDK应用程序》(完整版+目录)
  11. PS基础学习
  12. C# 泛型初探
  13. 不错的 HttpHelper类 c#
  14. 原来你是这样的JAVA[03]-继承、多态、抽象类
  15. Maven 核心原理
  16. Javascript高级编程学习笔记(64)—— 事件(8)键盘与文本事件
  17. Socket基础之-启动异步服务侦听
  18. iOS之iOS11、iPhone X、Xcode9 适配指南
  19. Bootstrap学习记录-1.Navigation
  20. Hash碰撞 & 拒绝服务漏洞

热门文章

  1. JavaSE_XMind总结
  2. OC SEL (@selector) 原理及使用总结(转)
  3. unity 读取外部exe程序控制台信息
  4. Python基础(3) - 数据类型:1数字类型
  5. resteay上传单个文件/多个文件到本地
  6. AngularJS的日期格式化有两种形式
  7. [转]Consuming a OData Service in a Client Application (WCF Data Services)
  8. datatable 转字符串
  9. Hadoop实战之二~ hadoop作业调度详解(1)
  10. express常用中间件