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:
l
Outputs the filename and line number of each original line of Perl code as it is processed
O
Outputs each OP as it is compiled
p
Outputs the contents of the shadow pad of lexicals as it is loaded for each sub or for the main program
q
Outputs the name of each fake PP function in the queue as it’s about to be processed
r
Writes debugging output to STDERR instead of as comments in the C output
s
Outputs the contents of the shadow stack at each OP
t
Outputs timing information of the stages of compilation
- -fopt
Forces individual optimizations on or off. Possible values of opt are:
freetmps-each-bblock
Runs FREETMPS at the end of each basic block instead of at the end of each statement.
freetmps-each-loop
andfreetmps-each-bblock
are mutually exclusive.freetmps-each-loop
Runs FREETMPS at the end of each loop instead of at the end of each statement. ...
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.