Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
==Preparing to run Juby== | ||
|
||
You will need MLVM/Da Vinci machine with current patches. | ||
|
||
Compile the bootstrap class: | ||
|
||
javac src/com/headius/juby/SimpleJavaBootstrap.java | ||
|
||
==Compiling Juby source== | ||
|
||
jruby -J-cp src -J-XX:+EnableInvokeDynamic bin/jubyc <src.jb> | ||
|
||
or | ||
|
||
jruby -J-cp src -J-XX:+EnableInvokeDynamic bin/jubyc -e "juby script here" | ||
|
||
The latter will produce a "dash_e.class" | ||
|
||
==Running the compiled result== | ||
|
||
java -Xint -XX:+EnableInvokeDynamic -cp src:. <classname> | ||
|
||
==Notes== | ||
|
||
-Xint is only necessary until MLVM/DVM has JIT support for invokedynamic |