massakrienen Posted May 13, 2014 Posted May 13, 2014 Hello, Can someone please tell me what a return stack is, or suggest me some useful links? I could not find anything useful on the internet. Is it also called as "call stack"? Thank you.
Spyman Posted May 13, 2014 Posted May 13, 2014 In computer science, a call stack is a stack data structure that stores information about the active subroutines of a computer program. /Snip/ A call stack is used for several related purposes, but the main reason for having one is to keep track of the point to which each active subroutine should return control when it finishes executing. http://en.wikipedia.org/wiki/Call_stack
massakrienen Posted May 13, 2014 Author Posted May 13, 2014 So, call stack and return stack are the same thing?
Spyman Posted May 13, 2014 Posted May 13, 2014 It depends on what programming language you use, I normally don't use this type of high level language so I can't say for certain, but: In the Forth programming language, for example, ordinarily only the return address, counted loop parameters and indexes, and possibly local variables are stored on the call stack (which in that environment is named the return stack) http://en.wikipedia.org/wiki/Call_stack#Functions_of_the_call_stack
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now