adding parfait options to compiler

to make smaller binaries with larger integer heaps
also ran some benchmarks to see if it makes a difference
at least the binaries are smaller, calling also faster
This commit is contained in:
2019-08-24 11:44:13 +03:00
parent 02261ad79d
commit 259edb51e9
2 changed files with 6 additions and 4 deletions

View File

@ -3,7 +3,8 @@ require "rubyx"
require "risc/interpreter"
class RubyXC < Thor
class_option :parfait , type: :numeric
class_option :integers , type: :numeric
class_option :mesages , type: :numeric
desc "compile FILE" , "Compile given FILE to binary"
@ -98,7 +99,8 @@ class RubyXC < Thor
private
def extract_options
opt = { factory: options[:parfait] || 1024 }
opt = { Integer: options[:integers] || 1024 ,
Message: options[:messages] || 1024}
return {parfait: opt}
end