Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

04云:内存中的区域划分 #4

Open
platojobs opened this issue Aug 5, 2021 · 0 comments
Open

04云:内存中的区域划分 #4

platojobs opened this issue Aug 5, 2021 · 0 comments
Labels
Technology technology

Comments

@platojobs
Copy link
Owner

  • 栈区(stack):由系统自动分配和释放,存放局部变量的值,容量小速度快,有序
  • :一般由程序员分配和释放,如果不释放,则出现内存泄露。程序会回收您的内存,特点:容量大,速度慢,无序
  • 静态存储区:全局变量(外部变量)和静态变量都存放在静态区域。当程序结束使,系统回收
  • 常量区:存放常量的内存区域,程序结束时,系统回收
  • 代码区:存放二进制代码的区域
@platojobs platojobs added the Technology technology label Aug 5, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Technology technology
Projects
None yet
Development

No branches or pull requests

1 participant