aa79e41d1c
seems to fit the layer much better as we really have a very reduced instruction set
35 lines
506 B
Ruby
35 lines
506 B
Ruby
require_relative '../../typed/helper'
|
|
|
|
# Benchmarks for the stuff in results.md
|
|
|
|
module BenchTests
|
|
|
|
include RuntimeTests
|
|
|
|
def setup
|
|
@stdout = ""
|
|
@machine = Risc.machine.boot
|
|
# Vm::Compiler.load_parfait
|
|
# most interesting parts saved as interger/word .soml in this dir
|
|
end
|
|
|
|
def main
|
|
runko = <<HERE
|
|
class Object
|
|
int main()
|
|
PROGRAM
|
|
end
|
|
end
|
|
HERE
|
|
runko.sub("PROGRAM" , @main )
|
|
end
|
|
|
|
def check_remote val
|
|
check_r val , true
|
|
end
|
|
|
|
def connected
|
|
make_box
|
|
end
|
|
end
|