当前位置:网站首页>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.
边栏推荐
- 【信息检索导论】第六章 词项权重及向量空间模型
- allennlp 中的TypeError: Object of type Tensor is not JSON serializable错误
- Transform the tree structure into array in PHP (flatten the tree structure and keep the sorting of upper and lower levels)
- A slide with two tables will help you quickly understand the target detection
- 【深度学习系列(八)】:Transoform原理及实战之原理篇
- Feeling after reading "agile and tidy way: return to origin"
- 一份Slide两张表格带你快速了解目标检测
- parser. parse_ Args boolean type resolves false to true
- Optimization method: meaning of common mathematical symbols
- 【BERT,GPT+KG调研】Pretrain model融合knowledge的论文集锦
猜你喜欢

Common machine learning related evaluation indicators

【信息检索导论】第二章 词项词典与倒排记录表

Common CNN network innovations

传统目标检测笔记1__ Viola Jones

论文写作tip2

Win10+vs2017+denseflow compilation

SSM second hand trading website
![[mixup] mixup: Beyond Imperial Risk Minimization](/img/14/8d6a76b79a2317fa619e6b7bf87f88.png)
[mixup] mixup: Beyond Imperial Risk Minimization

Traditional target detection notes 1__ Viola Jones

生成模型与判别模型的区别与理解
随机推荐
ModuleNotFoundError: No module named ‘pytest‘
图片数据爬取工具Image-Downloader的安装和使用
【TCDCN】《Facial landmark detection by deep multi-task learning》
Huawei machine test questions-20190417
[torch] some ideas to solve the problem that the tensor parameters have gradients and the weight is not updated
华为机试题-20190417
Win10+vs2017+denseflow compilation
Pointnet understanding (step 4 of pointnet Implementation)
解决latex图片浮动的问题
One field in thinkphp5 corresponds to multiple fuzzy queries
【信息检索导论】第七章搜索系统中的评分计算
Tencent machine test questions
ABM论文翻译
聊天中文语料库对比(附上各资源链接)
【Mixup】《Mixup:Beyond Empirical Risk Minimization》
【多模态】CLIP模型
使用Matlab实现:幂法、反幂法(原点位移)
Proof and understanding of pointnet principle
Installation and use of image data crawling tool Image Downloader
Generate random 6-bit invitation code in PHP