remove passes and achieve the same by translating
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user