Multiple choice

What is a machine stack (often shortened to just "the stack") composed of?

  1. Activation records

  2. Stack pointer register

  3. Page

  4. Status register

  5. Heap data structure

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A call stack or the machine stack is composed of stack frames (also called activation records or activation frames). An activation record is a data structure containing subroutine state information located on the machine stack. These are machine dependent and ABI-dependent data structures containing subroutine state information. Each stack frame corresponds to a call to a subroutine which has not yet terminated with a return.