Changes between Version 18 and Version 19 of Commentary/Rts/Storage/Stack


Ignore:
Timestamp:
Jul 5, 2018 8:28:36 AM (14 months ago)
Author:
osa1
Comment:

Stack stuff of a TSO are in tso->stackobj

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Rts/Storage/Stack

    v18 v19  
    1 
    2 
    31= Layout of the stack =
    42
    5 Every [wiki:Commentary/Rts/HeapObjects#ThreadStateObjects TSO object] contains a stack.  The stack of a TSO grows downwards, with the topmost (most recently pushed) word pointed to by {{{tso->sp}}}, and the bottom of the stack given by {{{tso->stack + tso->stack_size}}}.
     3Every [wiki:Commentary/Rts/HeapObjects#ThreadStateObjects TSO object] contains a stack ({{{tso->stackobj}}}).  The stack of a TSO grows downwards, with the topmost (most recently pushed) word pointed to by {{{tso->stackobj->sp}}}, and the bottom of the stack given by {{{tso->stackobj->stack + tso->stackobj->stack_size}}}.
    64
    75The stack consists of a sequence of ''stack frames'' (also sometimes called ''activation records'') where each frame has the same layout as a heap object: