当前位置:网站首页>Memory model of program
Memory model of program
2022-07-02 07:40:00 【Xiao Chen who wants money】
Memory partition model .
Memory is divided into 4 Regions , They are code areas , Global area , The stack area , Heap area .
When a process starts , There are the following assignments 4 Regions .

( One ) Code area and global area
After the program is compiled , Will generate a exe Executable program of , Before the program is executed, it is divided into two areas , Code area and global area .
Code section
- Store the binary code of the function body , Managed by the operating system .
- Deposit CPU Machine instructions executed .
- The code area is share Of , The purpose of sharing is for programs that are frequently executed , Just have a code in memory , Remove redundant code .
- The code area is read-only Of , The purpose of read-only is to prevent the program from being modified by its instructions .
Global area
Store global variables and static variables (static int a), Contains the constant area ,( String constant , Other constants const Decorated variable )
const The decorated global variables are placed in the global area ,const The decorated local variables are placed in the code area .
The stack area :
Stored is the return address of the subroutine 、 Parameters of subroutine 、 And the local variables of the program .
Heap area :
Store dynamically allocated data for example :new and malloc.
边栏推荐
- iOD及Detectron2搭建过程问题记录
- Deep learning classification Optimization Practice
- 常见CNN网络创新点
- Faster-ILOD、maskrcnn_ Benchmark installation process and problems encountered
- Feeling after reading "agile and tidy way: return to origin"
- PointNet理解(PointNet实现第4步)
- 解决latex图片浮动的问题
- A summary of a middle-aged programmer's study of modern Chinese history
- How to efficiently develop a wechat applet
- 【Cutout】《Improved Regularization of Convolutional Neural Networks with Cutout》
猜你喜欢

Faster-ILOD、maskrcnn_benchmark安装过程及遇到问题

A slide with two tables will help you quickly understand the target detection

Faster-ILOD、maskrcnn_ Benchmark trains its own VOC data set and problem summary
![[model distillation] tinybert: distilling Bert for natural language understanding](/img/c1/e1c1a3cf039c4df1b59ef4b4afbcb2.png)
[model distillation] tinybert: distilling Bert for natural language understanding

view的绘制机制(一)

【深度学习系列(八)】:Transoform原理及实战之原理篇

自然辩证辨析题整理
![[Bert, gpt+kg research] collection of papers on the integration of Pretrain model with knowledge](/img/2e/e74d7a9efbf9fe617f4d7b46867c0a.png)
[Bert, gpt+kg research] collection of papers on the integration of Pretrain model with knowledge

SSM garbage classification management system

Traditional target detection notes 1__ Viola Jones
随机推荐
ABM论文翻译
【信息检索导论】第三章 容错式检索
PHP returns the abbreviation of the month according to the numerical month
Regular expressions in MySQL
PointNet原理证明与理解
Optimization method: meaning of common mathematical symbols
MMDetection安装问题
Feeling after reading "agile and tidy way: return to origin"
Two dimensional array de duplication in PHP
Win10 solves the problem that Internet Explorer cannot be installed
SSM personnel management system
使用 Compose 实现可见 ScrollBar
【深度学习系列(八)】:Transoform原理及实战之原理篇
Use Baidu network disk to upload data to the server
Alpha Beta Pruning in Adversarial Search
【Programming】
SSM student achievement information management system
Common CNN network innovations
Spark SQL task performance optimization (basic)
Calculate the difference in days, months, and years between two dates in PHP