堆栈内存和堆内存之间的区别 [英] Difference between stack memory and heap memory

查看:84
本文介绍了堆栈内存和堆内存之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
什么和堆栈和堆在哪里

Possible Duplicate:
What and where are the stack and heap

堆内存和堆栈内存存储在哪里?我的意思是硬盘上的什么地方?它们的大小限制是什么?

Where is heap memory and stack memory stored?I mean where on the harddisk?what are the limits of their size?

推荐答案

您应该将内存和硬盘视为对立.

You should consider memory and hard-disk as opposites.

内存是随身携带的更昂贵的东西,比硬盘快1000倍.

Memory is the more expensive stuff that comes in sticks and is 1000x faster than hard disk.

我认为您无法以所需的方式查找"堆和堆栈内存.操作系统通过为每个内存分配一定范围的内存(例如0x682CFF00-0x681CFF00)来进行设置.

I don't think you'll be able to "find" the heap and stack memory the way you want to. The OS sets this up by assigning some range of memory for each ( like 0x682CFF00 - 0x681CFF00 ).

这篇关于堆栈内存和堆内存之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆