checkpointing on the mad road to register allocation
This commit is contained in:
@ -4,19 +4,19 @@ module Core
|
||||
#there are no Kernel instances, only class methods.
|
||||
# We use this module syntax to avoid the (ugly) self (also eases searching).
|
||||
module ClassMethods
|
||||
def main_start
|
||||
def main_start block
|
||||
#TODO extract args into array of strings
|
||||
Vm::CMachine.instance.main_start
|
||||
Vm::CMachine.instance.main_start block
|
||||
end
|
||||
def main_exit
|
||||
def main_exit block
|
||||
# Machine.exit mov r7 , 0 + swi 0
|
||||
Vm::CMachine.instance.main_exit
|
||||
Vm::CMachine.instance.main_exit block
|
||||
end
|
||||
def function_entry f_name
|
||||
Vm::CMachine.instance.function_entry f_name
|
||||
def function_entry block , f_name
|
||||
Vm::CMachine.instance.function_entry block , f_name
|
||||
end
|
||||
def function_exit f_name
|
||||
Vm::CMachine.instance.function_exit f_name
|
||||
def function_exit block , f_name
|
||||
Vm::CMachine.instance.function_exit block , f_name
|
||||
end
|
||||
def putstring
|
||||
# should unwrap from string to char*
|
||||
|
Reference in New Issue
Block a user