-
Notifications
You must be signed in to change notification settings - Fork 16
Virtual Machine
Matthias Zenger edited this page May 31, 2016
·
7 revisions
The virtual machine consists of the following components:
- context: This is a reference to the context in which this virtual machine is embedded.
- stack: This is the stack for passing parameters, storing intermediate results, and for returning results.
- sp: The stack pointer, i.e. the index of the next available position on the stack.
The stack is segmented into frames, each representing the invocation of a closure. The layout of each stack frame looks like this:
TODO: Include more details