clean up booting

many machine boot became obsolete
or just neede parfait to boot
actual linker functionality pending
This commit is contained in:
Torsten Ruger
2018-07-01 14:12:42 +03:00
parent e75aef933d
commit c947c27a14
32 changed files with 71 additions and 62 deletions

View File

@ -35,8 +35,8 @@ module MomCompile
compile_to_mom(method , res.clazz.instance_type)
end
def compile_to_mom(method , for_type)
typed_method = create_typed_method(for_type)
source.to_mom( typed_method )
typed_method = method.create_typed_method(for_type)
method.source.to_mom( typed_method )
end
def check_array( should , is )

View File

@ -8,7 +8,7 @@ module Risc
def setup
Parfait.boot!
Risc.machine.boot
Risc.boot!
RubyX::RubyXCompiler.ruby_to_binary( @string_input , :interpreter)
@interpreter = Interpreter.new
@interpreter.start_machine