当前位置:网站首页>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
边栏推荐
- Summary of Shanghai Jiaotong University postgraduate entrance examination module -- cryptography
- Notes on writing test points in mind mapping
- I What is security testing
- Common tips
- Supercomputing simulation research has determined a safe and effective carbon capture and storage route
- Advanced order of function
- Canoe - the third simulation project - bus simulation - 3-1 project implementation
- Design and common methods of test case documents
- QQ get group information
- Simple understanding of seesion, cookies, tokens
猜你喜欢
Using terminal connection in different modes of virtual machine
Canoe - the third simulation project - bus simulation-1 overview
Digital simulation beauty match preparation -matlab basic operation No. 6
Automatic translation between Chinese and English
Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
Canoe the second simulation engineering xvehicle 3 CAPL programming (operation)
Detailed array expansion analysis --- take you step by step analysis
Introduction to Lichuang EDA
Post man JSON script version conversion
Jemeter script recording
随机推荐
LxC shared directory addition and deletion
QQ group administrators
IO stream ----- open
Some tips on learning database
SQL greatest() function instance detailed example
JMeter Foundation
Elevator dispatching (pairing project) ④
三立期货安全么?期货开户怎么开?目前期货手续费怎么降低?
Test question bank management system - database design [easy to understand]
JMeter assembly point technology and logic controller
(2021-08-20) web crawler learning 2
QQ get group link, QR code
Process communication and thread explanation
Canoe: the fourth simulation project -- bug debugging experience
Canoe: distinguish VT, VN and vteststudio from their development history
Postman advanced
Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
Detailed array expansion analysis --- take you step by step analysis
Simple understanding of generics
Solaris 10网络服务