Move booting to RubyXCompiler init
Also pass the source into the compile method. This way compiler can be reused for subsequent compile. Does remove some double boots, but no major time save
This commit is contained in:
@ -125,13 +125,5 @@ module Risc
|
||||
risc_init = Branch.new( "__initial_branch__" , init.callable.binary )
|
||||
@platform.translator.translate(risc_init)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# module method to reset, and init
|
||||
def self.boot!
|
||||
Position.clear_positions
|
||||
Builtin.boot_functions
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user