remove passes and achieve the same by translating

This commit is contained in:
Torsten Ruger
2015-10-24 11:42:36 +03:00
parent 57f37ec023
commit a871f96630
5 changed files with 138 additions and 88 deletions

View File

@ -4,19 +4,14 @@ class HelloTest < MiniTest::Test
def check
machine = Register.machine.boot
#TODO remove this hack: write proper aliases
statements = machine.parse_and_compile @string_input
output_at = "Register::CallImplementation"
#{}"Register::CallImplementation"
machine.parse_and_compile @string_input
machine.collect
machine.run_before output_at
#puts Sof.write(machine.space)
machine.run_after output_at
machine.translate_arm
writer = Elf::ObjectWriter.new(machine)
writer.save "hello.o"
end
def pest_string_put
def test_string_put
@string_input = <<HERE
class Object
int main()