- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
这是精心收集的精品经典资料,值得下载保存阅读!
c语言编译的过程(The process of compiling a C language)
I. summary
C language compiler of the whole process is very complicated, which involves the knowledge of compiler and hardware knowledge, tool chain knowledge is very much, in-depth understanding of writing the compile process understand the application of the engineer is a great help, I hope everyone can understand, think, when they encounter problems in practice.
In general, we only need to know the compile and link into two stages, compiling the source program (*.c) into target code (usually obj file, as for the stage specific process is said above), the connection stage is the source program into object code (obj file) to connect with the corresponding you call the library function inside the program code into the corresponding executable file (EXE file) can be, others are needed in practice a lot of experience in order to have a deeper understanding.
Two, C language compile the whole process
1) the concept of compilation:
The compiler reads the source program (Zi Fuliu), analyze the lexical and syntax of the turns instructions in a high-level language into functionally equivalent assembly code, and then converted by the assembler into a machine language, and in accordance with the requirements of the operating system to link the generated executable file format executable program.
2) the complete process of compiling:
C source program pre compilation (.C) -- -- compiler optimization (.S,.Asm) - (.Obj,.O,.A, assembly,.Ko (.Exe,.Elf) - link,.Axf etc.)
1. compiler preprocessing
Read the C source program, the directive which (to # at the beginning of the instruction) and special symbols for processing, pseudo instruction mainly includes the following four aspects:
(1) macro defined instructions such as #define, Name, TokenString, #undef, etc..
For the previous pseudo directive, what the precompiled will do is to replace all the Name in the program with TokenString, but the Name as the string constant is not replac
您可能关注的文档
- 2010年厦门市第十六届职工技术比赛电子设备装接工(技师)项目竞赛规则(Competition rules of electronic equipment installation (technician) project for sixteenth employees' technical competition in Xiamen in 2010).doc
- 2010年外国文学复习题(Review of foreign literature in 2010).doc
- 2010年天津市中考 化学试题(Chemistry examination questions of Tianjin middle school in 2010).doc
- 2010年巴菲特致股东的信中文全本(In 2010, Buffett's letter to shareholders was published in Chinese).doc
- 2010年度全国高级会计师资格考试(National senior accountant qualification examination in 2010).doc
- 2010年度基数调整问答(2010 annual base adjustment Q & A).doc
- 2010上海市深化电子政务信息共享和业务协同的主要做法及应用成效(2010, the main practices and application effects of deepening e-government information sharing and business collaboration in Shanghai).doc
- 2010年度红人总排行(Reds ranking 2010).doc
- 2010北京市西城区高三一模语文(2010 Beijing Xicheng District city middle school the first mock exam of Chinese).doc
- 2010年我国食品机械发展对策_中国食品_食品资讯_食品伙伴网(In 2010 China's food machinery development strategy _ China food _ food information _ Food Co.).doc
- c语言高效编程的的四招技巧(C language efficient programming of the four trick).doc
- d2合成公式(D2 synthesis formula).doc
- danfoss丹佛斯 filter干燥过滤器 dml165(Danfoss Danfoss filter drying filter dml165).doc
- daota 装备合成(daota 装备合成).doc
- c脱盐水题库--名词解释(C demineralized water test bank - noun interpretation).doc
- dcs系统中仪表安装、使用的要求(Requirements for instrumentation installation and use in DCS systems).doc
- dedecms标签教程(Dedecms tag tutorial).doc
- delphi之面向对象的界面重用技术(Object oriented interface reuse technology for Delphi).doc
- delphi7.0 预编译指令说明(预编译指令说明Delphi7.0).doc
- delphi定义的条件编译介绍说明(Delphi definition of conditional compilation is introduced).doc
最近下载
- D-Z-T 0017-2023 工程地质钻探规程(正式版).docx VIP
- D-Z-T 0382-2021 固体矿产勘查地质填图规范(正式版).docx VIP
- [病人入院护理评估表1.doc VIP
- 具有抗菌性能的中熵合金、制备方法及其应用.pdf VIP
- 探析互联网技术在小学英语教学中的应用.docx VIP
- 科技英语的特征.pptx VIP
- 湖南省2026届高三九校联盟第一次联考 化学试卷(含答案详解).pdf
- 银川乐口福食品有限公司产品研发动因及对策研究----以蛋糕为例 经管类毕业论文.docx VIP
- 2023年ISO37001反贿赂管理体系内部审核全套资料.docx VIP
- 中国文化产业和旅游业年度研究报告(2024)精华版.pdf
文档评论(0)