Here are two bash functions so that you can compile and execute the bytecode in the terminal:<p>i.e.<p>rubyc test.rb<p>ruby-do test.rbc<p>in .bashrc:<p>function rubyc() {<p>ruby -e &quot;File.open(&#x27;$1c&#x27;, &#x27;wb&#x27;).write(RubyVM::InstructionSequence.compile_file(&#x27;$1&#x27;).to_binary)&quot;<p>}<p>function ruby-do() {<p>ruby -e &quot;RubyVM::InstructionSequence.load_from_binary(File.open(&#x27;$1&#x27;, &#x27;rb&#x27;).read).eval&quot;<p>}