I always have this confusion,in arm assembly, is the stack a separate memory unit or a partition of the main memory itself?
In my understanding,the main memory(RAM) is divided into stack and heap.The stack is pointed by the stack pointer R13
register or sp
.From this pointer we can do the stack operations.
Also what I understand is that stack stores local variables in high level languages and function calls.How does it translate to assembly?
I am not able to find the answers to these questions on google.