Skip to content

Commit

Permalink
Added whiteknight++ and moritz++ suggestions on compiling to
Browse files Browse the repository at this point in the history
my RANDOM.NOTES.
  • Loading branch information
jayemerson committed Jul 20, 2011
1 parent d2afee1 commit 64e8759
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions RANDOM.NOTES
Expand Up @@ -358,6 +358,23 @@ token sys_bare_words {
\N+ \n?
}

####################################


If I have an NQR script, can I "compile" it, or compile the bytecode for faster performance?
<jay> < I could be asking the same question about squaak, of course >
<whiteknight> yes
<whiteknight> I need to double-check, but I think you can do something like this: "parrot-nqp --target=pir --output=foo.pir nqr.pbc foo.r
<whiteknight> "
<moritz> or maybe just
<moritz> ./nqp --target=pir foo.r > foo.pir
<moritz> erm
<moritz> ./nqr
<moritz> if you have a newer version that builds a fakexecutable
<whiteknight> yeah, that looks cleaner

and then once you have the .pir, you can do "parrot -o foo.pbc foo.pir" to get bytecode




Expand Down

0 comments on commit 64e8759

Please sign in to comment.