starting on mom to risc

some docs too
This commit is contained in:
2019-08-08 12:19:27 +03:00
parent 82c9f1d97f
commit 5994cd3276
9 changed files with 102 additions and 77 deletions

View File

@ -34,6 +34,12 @@ module Mom
@constants << const
end
# translate to Risc, ie a Risc level CallableCompiler
# abstract functon that needs to be implemented by Method/BlockCompiler
def to_risc
raise "abstract in #{self.class}"
end
# add a risc instruction after the current (insertion point)
# the added instruction will become the new insertion point
def add_code( instruction )