Skip to content

Specification

nineties edited this page Apr 17, 2014 · 3 revisions

Virtual Machine

Stack Frame

The size of words is denoted by W.

bottom BSP top
arg(n) ... arg(1) self closure n * wordsize return address frame size base pointer local(1) local(2) ...
  • 6W(BSP) = 2nd argunent
  • 5W(BSP) = 1st argument
  • -W(BSP) = 1st local variable
  • -2W(BSP) = 2nd local variable
Clone this wiki locally