当前位置:网站首页>Compilation and linking of programs
Compilation and linking of programs
2022-07-24 09:36:00 【pythoncjavac++】
Catalog
Program translation environment and execution environment
——————————————————————————————————————————
Program translation environment and execution environment
1. Translation environment , In this environment, the source code is translated into executable machine instructions .
2. execution environment , It's used to actually execute code .
It can be understood according to the following figure

Translation environment
This picture shows what the translation environment has done , If you want to observe carefully, you can Linux Observe each step in the environment .
execution environment
1. The program must be loaded into memory , In an operating system environment , This is usually done by the operating system , In an independent environment , The loading of the program must be arranged manually , It can also be done by putting executable code into read-only memory .
2. The execution of the procedure begins , Then call main function .
3. Start executing program code , At this point, the program will use a runtime stack (strack), Store function variables and return addresses , Programs can also use static (stack) Memory , Variables stored in static memory retain their values throughout the execution of the program .
4. To terminate the program , Normal termination main function , It could be an accidental termination .
边栏推荐
- 华为无线设备安全策略配置命令
- NVIDIA set persistent mode
- gnuplot软件学习笔记
- Account 1-3
- Re6:读论文 LeSICiN: A Heterogeneous Graph-based Approach for Automatic Legal Statute Identification fro
- Scarcity in Web3: how to become a winner in a decentralized world
- The difference between classification and regression
- Nuggets manufacturing industry, digital commerce cloud supply chain collaborative management system to achieve full chain intelligent management and control
- 力扣300-最长递增子序列——动态规划
- What if path is deleted by mistake when configuring system environment variables?
猜你喜欢

Account 1-3

TCP triple handshake connection combing

Embedded development: Tools - optimizing firmware using DRT

The next stop of data visualization platform | gifts from domestic open source data visualization datart "super iron powder"

代码随想录笔记_链表_25K个一组翻转链表
Gin framework uses session and redis to realize distributed session & Gorm operation mysql
![[don't bother to strengthen learning] video notes (III) 3. SARS (lambda)](/img/3b/981bd564a5855a317ccdd4800871ce.png)
[don't bother to strengthen learning] video notes (III) 3. SARS (lambda)

Data center: started in Alibaba and started in Daas

Getting started with web security - open source firewall pfsense installation configuration

What if path is deleted by mistake when configuring system environment variables?
随机推荐
The difference between classification and regression
Ue5 film and television animation rendering MRQ layered learning notes
[don't bother with reinforcement learning] video notes (I) 3. Why use reinforcement learning?
The next stop of data visualization platform | gifts from domestic open source data visualization datart "super iron powder"
It is reported that the prices of some Intel FPGA chip products have increased by up to 20%
DP longest common subsequence detailed version (LCS)
SQL 优化原则
《动手学深度学习》(七) -- 边界框和锚框
PHP Basics - session control - cookies
& 和 &&、| 和 || 的区别
Color recognition of regions of interest in pictures and videos based on OpenCV
Leetcode skimming: dynamic planning 03 (climb stairs with minimum cost)
Aruba learning notes 06 wireless control AC basic configuration (CLI)
Little dolphin "transformed" into a new intelligent scheduling engine, which can be explained in simple terms in the practical development and application of DDS
Protocol buffers 的问题和滥用
MySQL Basics (I) -- SQL Basics
Embedded development: Tools - optimizing firmware using DRT
Nuxt 路由切换后 asyncData 跨域报错
Recursion - if the function calls itself internally, then the function is a recursive function & the effect is the same as that of the loop & the push condition return should be added, otherwise stack
Vim: extend the semantic analysis function of YCM for the third-party library of C language