Skip to content

Commit

Permalink
Update head comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mossprescott committed Mar 11, 2024
1 parent f4b1229 commit cdc1cbf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions alt/scheme/rvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

"""Ribbit VM implementation.
The interpreter and primitives are all hand-rolled assembly. In hindsight, it would have been
quicker and easier to adapt the compiler in "register.py", with a minimal library, and implement the
interpreter in that. The size in ROM of the actual interpreter turns out not to be very critical
(~1K words), and we're not really going for maximum performance here.
Two interpreters are currently implemented:
- a faster, more compact, but incomplete interpreter, in hand-rolled assembly
- a slightly slower, larger, but almost completely functional version in Jack using the compiler
in reg.py, which has been significantly enhanced for this purpose.
Neither interpreter provides garbage-collection yet.
RSC's encoded instruction stream is decoded (in Python) into ribs directly in the ROM, which
is both relatively efficient in time and space, and more realistic than loading a complex program
Expand Down

0 comments on commit cdc1cbf

Please sign in to comment.