5.3.1 Memory Layout

The callstack can be implemented as a contiguous array of frame records:
By default, the callstack can be initialized as an empty array.

Example implementation : - Data type: Array of tuples ‘[(PC, SP)]’ - PC (Program Counter): Return address (next instruction after CALL) - SP (Stack Pointer): Stack state at call time

FramePCSPDescription
000Entry point
11216First function call
25724Current function locale start