split the pass runs to debug

This commit is contained in:
Torsten Ruger
2015-06-12 18:52:06 +03:00
parent 54c71fa216
commit 1baece99c7
2 changed files with 61 additions and 20 deletions

View File

@ -6,8 +6,10 @@ class HelloTest < MiniTest::Test
def check
machine = Virtual::Machine.boot
expressions = machine.compile_main @string_input
machine.run_before "Register::CallImplementation"
puts Sof::Writer.write(machine.space)
machine.run_passes
machine.run_after "Register::CallImplementation"
writer = Elf::ObjectWriter.new(machine)
writer.save "hello.o"