rubyx/lib/vm
Torsten Ruger 04e4dc872e check
2014-05-03 18:51:47 +03:00
..
block.rb check 2014-05-03 18:51:47 +03:00
code.rb more semi random code, a checkpoint 2014-05-03 15:13:44 +03:00
context.rb more semi random code, a checkpoint 2014-05-03 15:13:44 +03:00
conversion.rb more semi random code, a checkpoint 2014-05-03 15:13:44 +03:00
function_call.rb more semi random code, a checkpoint 2014-05-03 15:13:44 +03:00
function.rb check 2014-05-03 18:51:47 +03:00
instruction.rb more semi random code, a checkpoint 2014-05-03 15:13:44 +03:00
kernel.rb check 2014-05-03 18:51:47 +03:00
machine.rb more semi random code, a checkpoint 2014-05-03 15:13:44 +03:00
program.rb check 2014-05-03 18:51:47 +03:00
README.markdown created own directory for parser 2014-04-27 15:38:07 +03:00
values.rb check 2014-05-03 18:51:47 +03:00

Virtual Machine

This is the logic that uses the generated ast to produce code, using the asm layer.

Apart from shuffeling things around from one layer to the other, it keeps track about registers and provides the stack glue. All the stuff a compiler would usually do.

Also all syscalls are abstracted as functions.