fix and use object writer in test

This commit is contained in:
Torsten Ruger
2014-08-30 14:17:00 +03:00
parent b5c39b2749
commit 18f33770b5
2 changed files with 14 additions and 18 deletions

View File

@ -6,11 +6,10 @@ class HelloTest < MiniTest::Test
def check
machine = Virtual::Machine.boot
expressions = machine.compile_main @string_input
puts ""
Virtual::BootSpace.space.run_passes
ass = Register::Assembler.new(Virtual::BootSpace.space)
ass.assemble
puts Sof::Writer.write(expressions)
writer = Elf::ObjectWriter.new(Virtual::BootSpace.space)
writer.save "hello.o"
# puts Sof::Writer.write(expressions)
# puts Sof::Writer.write(Virtual::BootSpace.space)
end