码迷,mamicode.com
首页 > 编程语言 > 详细

C/C++程序编译过程

时间:2020-04-25 10:47:04      阅读:81      评论:0      收藏:0      [点我收藏+]

标签:top   工作过程   art   pil   net   pre   执行   汇编代码   特殊   

编译四个阶段

编译预处理,编译阶段,汇编阶段,链接程序。

编译预处理(Preprocessing)

读取源程序,对其中的伪指令(以#开头的指令)和特殊符号进行处理。

编译(Compilation)

将经过预处理之后的程序转换成特定汇编代码的过程。

汇编(Assemble)

将上一步的汇编代码转换成机器指令。

链接(Linking)

将多个目标文件以及所需的库文件链接成最终的可执行文件。

详解博客链接

C/C++编译过程:https://blog.csdn.net/hycxag/article/details/82967579

C语言编译过程详解:https://www.cnblogs.com/CarpenterLee/p/5994681.html#top

C/C++程序编译过程详解:https://www.cnblogs.com/mickole/articles/3659112.html

编译器的工作过程:http://www.ruanyifeng.com/blog/2014/11/compiler.html

C/C++程序编译过程

标签:top   工作过程   art   pil   net   pre   执行   汇编代码   特殊   

原文地址:https://www.cnblogs.com/echobiscuit/p/12771686.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!