在计算机内存架构方面有哪些堆栈和堆? [英] what are the stacks and heaps in terms of computer memory architecture ?
本文介绍了在计算机内存架构方面有哪些堆栈和堆?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当谈到计算机内存架构时,堆栈和堆是什么,我基本上是java家伙,我知道对象和变量在哪里生活我真的想知道堆栈和堆在内存中的位置?
what are the stacks and heaps when it comes to computer memory architecture, i am basically java guy and i know where the objects and variables lives the thing i actually want to know that where the stacks and heaps resides in memory ?
推荐答案
stack - >存储器中存储所有静态声明变量的区域(正常变量,函数参数,返回值,函数内部的变量等等)
堆 - >区域在内存中存储动态分配的变量(在c ++中使用new
关键字的那个
编辑抱歉,我没有仔细阅读这个问题:
我真的想知道堆栈和堆在内存中的位置?
他们都在RAM中?
stack -> the area in memory where all statically declared variables are stored ( normal variables, function parameters, return values, variables inside functions etc...
heap -> the area in memory where dynamically allocated variables are stored ( the one usingnew
keyword in c++
EDIT sorry i didn't read the question carefully :
the thing i actually want to know that where the stacks and heaps resides in memory ?
they are both in the RAM ?
这篇关于在计算机内存架构方面有哪些堆栈和堆?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文