当前位置:网站首页>C language memory layout
C language memory layout
2022-07-04 11:20:00 【Ascetic monk runnercai】
1、 The stack area (stack)
Release is automatically allocated by the compiler , Stores the parameter values of the function , The value of a local variable, etc . Its operation mode is like stack in data structure ;
2、 Heap area (heap)
Release is usually assigned by the programmer , If programmers don't release , At the end of the program, it may be recycled by the system , But it may cause memory leakage during program operation ( For example, circulation new The object that comes out is always not delete fall );
3、 Global variable area ( Also known as static storage static)
Global and static variables are stored in one block , Initialized global and static variables in one area , Uninitialized global variables and uninitialized static variables are in another adjacent area , There is a system release after the program ;
4、 The constant area
That's where constant strings are put , Released by the system at the end of the program ;
5、 Code segment
Store the binary code of the function body
边栏推荐
- OSI seven layer reference model
- Elevator dispatching (pairing project) ④
- Deepmind proposed a Zuan AI, which specially outputs network attack language
- Aike AI frontier promotion (2.14)
- Canoe test: two ways to create CAPL test module
- unit testing
- 守护进程Xinted和日志记录Syslogd
- 3W word will help you master the C language as soon as you get started - the latest update is up to 5.22
- R built in data set
- Ten key performance indicators of software applications
猜你喜欢
(August 9, 2021) example exercise of air quality index calculation (I)
Analysis function in SQL
Simple understanding of seesion, cookies, tokens
Performance test method
Summary of Shanghai Jiaotong University postgraduate entrance examination module firewall technology
JMeter assembly point technology and logic controller
2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
2020 Summary - Magic year, magic me
JMeter correlation technology
Appscan installation steps
随机推荐
OSI model notes
51 data analysis post
3W word will help you master the C language as soon as you get started - the latest update is up to 5.22
Fundamentals of software testing
Getting started with window functions
Safety testing aspects
Elevator dispatching (pairing project) ②
Configure SSH certificate login
QQ group collection
Appscan installation error: unable to install from Net runtime security policy logout appscan solution
Install freeradius3 in the latest version of openwrt
Canoe - the second simulation engineering - xvehicle - 2 panel design (operation)
Automatic translation between Chinese and English
Definition and method of string
Foreach (system.out:: println) usage
2018 meisai modeling summary +latex standard meisai template sharing
XMIND installation
Common built-in modules
Canoe: the difference between environment variables and system variables
Data transmission in the network