We precompile modules using a command line option like in: 'perl6 --target=mbc --output=foo.pm.moarvm'. Though, since this is for modules, only this incantation will work: 'perl6 -I. -Mfoo -e1'
We are working on creating executables such as 'foo.exe' from a given Perl 6 script, though I expect that this takes a few months before this feature lands. These executable would contain the Perl 6 interpreter, and the precompiled script in one file. Am 18.05.2015 um 14:28 schrieb Tom Browder: > > I found some discussion of such a capability on the Perl Mongers' site > but haven't found anything official yet in the Synopses. > > But I did find there an option that might do something related: > --output-format (which is implementation defined). However, I do not > see that option in Rakudo Perl 6. > > Can anyone point me to more info or say yes or no to possible support > of a save-compilation feature? > > Thanks. > > Cheers! > > -Tom >