in reply to Perl 5 Compiler, Again!
perlcc -B script.pl will compile to bytecode script.plc,
perl script.plc will execute the compiled script.
perl -c just stops after the CHECK phase.
2. system independent bytecode is hard, because threaded optrees looks different to not-threaded.
perl5 opcodes change from release to release, there's no discipline. p5 devs do not want to have bytecode discipline.
parrot was designed to have bytecode discipline originally (and be platform independent), but both of these goals were thrown away without discussion at v1.0. That's why I left the project in protest.
parrot's platform independent pbc format goal is still a goal in theory, but the tests were also disabled against my will around 1.0, so new bugs were introduced since the tests were disabled. code-smell.
3. perl had the -u switch to dump its code to a file, which could later be undumped to a single executable. To make this work would need about half a year, but I have no time for it yet.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl 5 Compiler, Again!
by chromatic (Archbishop) on Aug 13, 2012 at 19:12 UTC | |
by rurban (Scribe) on Sep 20, 2012 at 23:14 UTC | |
by chromatic (Archbishop) on Sep 20, 2012 at 23:25 UTC |