Confusion of the "stack" in Assembly-level programming
Posted
by
Bigyellow Bastion
on Programmers
See other posts from Programmers
or by Bigyellow Bastion
Published on 2012-12-17T22:03:15Z
Indexed on
2012/12/17
23:13 UTC
Read the original article
Hit count: 850
stack
What is the "stack" exactly? I've read articles, tried comprehending it through my understanding, experience, and educated guessing of programming and computers, but I'm a bit perplexed here.
The "stack" is a region in RAM? Or is it some other space I'm uncertain of here?
The processor pushes bits through registers on to the stack in RAM, or do I have it wrong here?
Also, the processor moves the bits from the RAM to the register to "process" it, such as maybe a compare, arithmetic, etc.
But what actually can help understand, in some visual or verbal description or both, of how to implement the idea of a "stack" here?
Is the stack actually the same in terminology with a "machine stack" meaning it's in RAM?
I'm sorry, I don't want to solicit debate or arguments, but I really could use some help here if anyone can straighten things out.
TO ADD: I know what a software stack is. I know about LIFO, FIFO, etc. I just want to gain a better understanding of the Assembly-level stack, what it is, where it is, how exactly it works, etc.
Thanks for reading!
© Programmers or respective owner