remove collecting from the machine

use as stand alone module
This commit is contained in:
Torsten Ruger
2016-12-31 19:54:18 +02:00
parent 671512b96c
commit dccd097fef
6 changed files with 12 additions and 14 deletions

View File

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

View File

@ -10,7 +10,7 @@ class TestZeroCode < MiniTest::Test
type.remove_method(method) unless keeper(method)
end
end
@objects = @machine.collect_space
@objects = Register::Collector.collect_space
end
def keeper name
name == :main or name == :__init__