being new to assembly... My head is really spinning trying to understand all the concepts. It is quit different from the php i've been programming the last 8 years. So here is my question...could someone please help me to understand the purpose and uses of a STACK. I know it can be used to push and pop addresses if i recall correctly but not exactly sure of its purpose since i thought assembly was coded using a linear fashion. Even this 60 dollar book i bought doesnt give clear and concise understanding of the stack. Ive also read about the first in last out conventions but none of it really makes sense yet. Could someone please help with my ignorance of the subject? Forgive my punctuation, im currently on mobile.
billgateswannab
0
Newbie Poster
Recommended Answers
Jump to PostToo bad you didn't learn C before assembly. In any event, the purpose of the stack is quite simple -- its used to save register values, save return addresses, and to allocate memory for local variables. When the function returns to its caller the stack is reset back to where …
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
simpsonzia
0
Newbie Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
moegi
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.