如何在Ruby 1.9中生成字节码? [英] How to generate bytecode in Ruby 1.9?
本文介绍了如何在Ruby 1.9中生成字节码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从Ruby 1.9生成byetcode? p>
我的目的是生成字节码而不是源代码,并将其与应用程序包一起提供。我知道JRuby的方法,但是我正面临那里的某些问题
解决方案
从JRuby调用BCEL库。 BCEL库随JDK一起提供。
How can I generate byetcode from Ruby 1.9??
My intent is to generate bytecode not the source code and ship it along with my application package. I am aware of the JRuby approach but I am facing certain issues there
解决方案
Call BCEL library from JRuby. BCEL library is shipped with JDK.
这篇关于如何在Ruby 1.9中生成字节码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文