From: Husam Senussi Date: 2009-08-05T02:49:02+09:00 Subject: Re: Loading precompiled code Will 1.9.1 has bytecode and you can get it using "RubyVM::InstructionSequence.compile_file", but it doesn looks like there is an APIs you can use to load them. This how I manage to store it. code = RubyVM::InstructionSequence.compile_file 'sample.rb' File.open "simple.rbvm", "w" do |file| file << Marshal.dump(code.to_a) end On 4 Aug 2009, at 18:45, Ken Burgett wrote: > As far as I know, there is no bytecode available from the Ruby > compiler. I > have never seen any reference to it. JRuby does compile down to Java > bytecodes. > > 2009/8/4 Husam Senussi > >> Hi, >> >> Does ruby support storing and loading bytecode !! >> >> Thanks >> >> > > > -- > Regards, > > Ken > > Seek wisdom through disbelief