Difference between stack memory and heap memory

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.

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

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 ).


也许这个讨论将有助于什么以及栈和堆在哪里?

链接地址: http://www.djcxy.com/p/2264.html

上一篇: 为什么没有分配原始数据类型的内存?

下一篇: 堆栈内存和堆内存之间的区别