且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

堆栈内存和堆内存之间的区别

更新时间:2023-01-15 21:22:17

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

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