require 'optparse' require 'pp' OutputCompileOption = { # enable :peephole_optimization =>true, :inline_const_cache =>true, # disable :specialized_instruction =>false, :operands_unification =>false, :instructions_unification =>false, :stack_caching =>false, } def compile_to_rb infile, outfile iseq = VM::InstructionSequence.compile_file(infile, OutputCompileOption) open(outfile, 'w'){|f| f.puts "VM::InstructionSequence.load(" + "Marshal.load(<