当前位置:网站首页>From source code to executable file
From source code to executable file
2022-04-23 18:03:00 【OceanKeeper1215】
1、 Preprocessing gcc -c
- Will all ”#define“ Delete , And expand all the macro definitions
- Handle all conditional compilation instructions , Enter into “#if”,“ifdef” etc. .
- Handle #“include” Precompiling instructions , Insert the included file into the location of the precompiled directive
- Delete all comments
2、 compile
Carry out a series of syntax analysis and optimization of the preprocessed files , Generate the corresponding assembly code file
3、 assembly
Translate the mutated assembly code file into machine instructions , And generate relocatable .o file , The file is binary , Byte encoding is a machine instruction
4、 link gcc -o
Link the target files and library files together through the linker to generate a completed executable program
The main job of the linker is to connect the target files to each other , That is to connect the symbol referenced in one file with the definition of the symbol in another file , Make all these target files into a unified whole that can be loaded and executed by the operating system .
版权声明
本文为[OceanKeeper1215]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230545105090.html
边栏推荐
- Array rotation
- Docker installation MySQL
- journal
- Logic regression principle and code implementation
- JS high frequency interview questions
- Detailed deployment of flask project
- [UDS unified diagnostic service] IV. typical diagnostic service (6) - input / output control unit (0x2F)
- Crawl the product data of cicada mother data platform
- cv_ Solution of mismatch between bridge and opencv
- C1 notes [task training chapter I]
猜你喜欢
Go file operation
2022 Jiangxi Photovoltaic Exhibition, China distributed Photovoltaic Exhibition, Nanchang solar energy utilization Exhibition
Gaode map search, drag and drop query address
JS get link? The following parameter name or value, according to the URL? Judge the parameters after
.104History
Open source key component multi_ Button use, including test engineering
Halo 开源项目学习(二):实体类与数据表
Scikit learn sklearn 0.18 official document Chinese version
C# 的数据流加密与解密
开源按键组件Multi_Button的使用,含测试工程
随机推荐
Clion installation tutorial
Crawl lottery data
k8s之实现redis一主多从动态扩缩容
Re expression régulière
Implementation of image recognition code based on VGg convolutional neural network
Click Cancel to return to the previous page and modify the parameter value of the previous page, let pages = getcurrentpages() let prevpage = pages [pages. Length - 2] / / the data of the previous pag
Qtablewidget usage explanation
Excel opens large CSV format data
2022 Jiangxi Photovoltaic Exhibition, China Distributed Photovoltaic Exhibition, Nanchang Solar Energy Utilization Exhibition
MySQL auto start settings start with systemctl start mysqld
An example of linear regression based on tensorflow
Fashion classification case based on keras
C [file operation] read TXT text by line
Tensorflow tensor introduction
[UDS unified diagnostic service] IV. typical diagnostic service (6) - input / output control unit (0x2F)
ES6
Jenkspy package installation
Logic regression principle and code implementation
Operation of 2022 mobile crane driver national question bank simulation examination platform
Auto. JS custom dialog box