B::CC
The CC backend for the Perl compiler. Generates optimized C source code that corresponds to your program’s flow. The initial version included in Perl 5.005 actually includes few optimizations, but this will change. Programs compiled with this backend may start up and execute slightly faster. Invoke as:
perl -MO=C[,options]program
program is the name of the Perl
script to compile. Any non-option arguments are treated as the names
of objects to be saved; the main program is assumed if there are no
extra arguments. Possible options are:
- --
Forces end of options.
- -Dopts
Debug options, which can be concatenated or specified separately. Possible options are:
lOutputs the filename and line number of each original line of Perl code as it is processed
OOutputs each OP as it is compiled
pOutputs the contents of the shadow pad of lexicals as it is loaded for each sub or for the main program
qOutputs the name of each fake PP function in the queue as it’s about to be processed
rWrites debugging output to STDERR instead of as comments in the C output
sOutputs the contents of the shadow stack at each OP
tOutputs timing information of the stages of compilation
- -fopt
Forces individual optimizations on or off. Possible values of opt are:
freetmps-each-bblockRuns FREETMPS at the end of each basic block instead of at the end of each statement.
freetmps-each-loopandfreetmps-each-bblockare mutually exclusive.freetmps-each-loopRuns FREETMPS at the end of each loop instead of at the end of each statement. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access