当前位置:网站首页>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
边栏推荐
- 2018 meisai modeling summary +latex standard meisai template sharing
- Data transmission in the network
- Four sorts: bubble, select, insert, count
- Discussion | has large AI become autonomous? Lecun, chief scientist of openai
- Performance features focus & JMeter & LoadRunner advantages and disadvantages
- No response after heartbeat startup
- Dos and path
- I What is security testing
- Sys module
- Simple understanding of string
猜你喜欢

Jemeter script recording

Summary of Shanghai Jiaotong University postgraduate entrance examination module firewall technology

(August 10, 2021) web crawler learning - Chinese University ranking directed crawler

Appscan installation steps

Notes on writing test points in mind mapping

Day01 preliminary packet capture

os. Path built-in module

Elevator dispatching (pairing project) ③

F12 clear the cookies of the corresponding web address

Elevator dispatching (pairing project) ②
随机推荐
Send a request using paste raw text
Notes on writing test points in mind mapping
Canoe: the fourth simulation project -- bug debugging experience
本地Mysql忘记密码的修改方法(windows)
Fundamentals of database operation
Canoe: what is vtsystem
Configure SSH certificate login
Analysis function in SQL
Function parameters (positional parameters, default value parameters, variable parameters, named keyword parameters, keyword parameters)
Software testing related resources
regular expression
IO stream ----- open
SSH原理和公钥认证
Terms related to hacker technology
守护进程Xinted和日志记录Syslogd
Summary of Shanghai Jiaotong University postgraduate entrance examination module -- cryptography
Solaris 10 network services
Locust installation
Some tips on learning database
3W word will help you master the C language as soon as you get started - the latest update is up to 5.22