create rubyx dir and move previous vool_compiler there

This commit is contained in:
Torsten Ruger
2018-06-29 22:46:39 +03:00
parent 63dd6d9039
commit c8451d0048
32 changed files with 363 additions and 156 deletions

View File

@ -39,7 +39,7 @@ module Mains
def compile(input , file , scp)
Risc.machine.boot
puts "Compiling test/#{file}.o" if DEBUG
Vool::VoolCompiler.ruby_to_binary( "class Space;def main(arg);#{input};end;end" )
Vool::RubyXCompiler.ruby_to_binary( "class Space;def main(arg);#{input};end;end" )
writer = Elf::ObjectWriter.new(Risc.machine)
writer.save "test/#{file}.o"
object_file = "/tmp/#{file}.o"