clean up booting
many machine boot became obsolete or just neede parfait to boot actual linker functionality pending
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user