Jump to content

What is a Return Stack?


massakrienen

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.