clean up booting

many machine boot became obsolete
or just neede parfait to boot
actual linker functionality pending
This commit is contained in:
Torsten Ruger
2018-07-01 14:12:42 +03:00
parent e75aef933d
commit c947c27a14
32 changed files with 71 additions and 62 deletions

View File

@ -65,7 +65,7 @@ module Risc
# An integer is plucked from object_space abd added to the machine constant pool
# if none was given
def self.label( source , name , position = nil , nekst = nil)
position = Risc.machine.get_address unless position
position = Parfait.object_space.get_address unless position
Label.new( source , name , position, nekst )
end
end

View File

@ -19,15 +19,19 @@ module RubyX
vool.to_mom(nil)
end
def ruby_to_risc(platform)
mom = ruby_to_mom
mom.translate(platform)
end
def ruby_to_binary(platform = :arm)
Parfait.boot!
machine = Risc.machine.boot
mom = ruby_to_mom
puts "MOM #{mom.class}"
mom.translate(platform)
#machine.translate(platform)
machine.position_all
machine.create_binary
Risc.boot!
assemblers = ruby_to_mom(platform)
puts "Assemblers #{assemblers}"
linker = Linker.new
linker.position_all
linker.create_binary
end
end
end