unlinking the objects collection from the machine

passing it around instead
This commit is contained in:
Torsten Ruger
2016-12-31 18:46:17 +02:00
parent b094bcc64f
commit 113b349af5
7 changed files with 37 additions and 33 deletions

View File

@ -6,9 +6,9 @@ class HelloTest < MiniTest::Test
def check
machine = Register.machine.boot
Typed.compile( @input )
machine.collect_space
objects = machine.collect_space
machine.translate_arm
writer = Elf::ObjectWriter.new
writer = Elf::ObjectWriter.new(machine , objects )
writer.save "test/hello.o"
end