[<<][libprim][>>][..]
Sun Oct 10 23:54:44 CEST 2010

PICOBIT VM

The stack-based VM uses instructions like:
- Push constant, stack element, global
- Push closure with entry point x
- Set global to TOS
- Call/Tailcall closure at TOS with x arguments
- Call (toplevel?) procedure
- Jump if TOS is #f
- Jump
- Return


I wonder where the value goes on return.  Checked in code[2]: It goes
on the stack (env) and is placed in a temp reg when the env gets
restored from the continuation frame, then goes back on the stack.


[1] http://www.ccs.neu.edu/home/stamourv/picobit.pdf
[2] http://repo.or.cz/w/picobit.git



[Reply][About]
[<<][libprim][>>][..]