Jump to content

What is a Return Stack?

Featured Replies

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.

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

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

Archived

This topic is now archived and is closed to further replies.

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.