The Perl Compiler

perl-compiler.org
 

The Perl Compiler

Compiles to C or platform-compatible Bytecode.

The Perl Compiler

The B::C, B::CC, B::Bytecode Perl Compiler Kit compiles to C or platform-compatible Bytecode.

The C backend takes Perl source and generates C source code corresponding to the internal structures that perl uses to run your program. When the generated C source is compiled and run, it cuts out the time which perl would have taken to load and parse your program into its internal semi-compiled form.

That means that compiling with the C backend will not help improve the runtime execution speed of your program but may improve the start-up time and memory footprint.

Status

The C and Bytecode backends are now functional enough to compile most of the main perl test suite from 5.6.2 to 5.14.2. The optimizing CC backend is unstable.

perlcc -r -S myprog.pl => creates myprog.c, compiles to a and runs a.

More...