starting on risc allocation

inserting allocator stage in method translation
This commit is contained in:
2020-03-17 21:46:57 +02:00
parent d5411c7727
commit 2e109a16dc
11 changed files with 55 additions and 13 deletions

View File

@ -0,0 +1,21 @@
require_relative "../helper"
module Risc
class TestCallableCompiler1 < MiniTest::Test
include SolCompile
def setup
@compiler = compile_main("return 5").to_risc
@platform = Platform.for(:arm)
end
def test_init
@compiler.risc_instructions.each do |ins|
puts ins.to_s
end
end
def test_1
@compiler.translate_method( @platform , [])
end
end
end