B::Bytecode
The bytecode backend for the Perl compiler. Takes Perl
source code and generates platform-independent bytecode that can be
run with the byteperl executable or can be loaded
via the byteload_fh function in the
B module. Compiling with the bytecode backend won’t speed up execution
of your program, but it may improve start-up time. Invoke as:
perl -MO=Bytecode[,options]program
in which 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:
aTells the bytecode assembler to include assembler source in its output as bytecode comments
bPrints debugging information about bytecompiler progress
CPrints each CV from the final walk through the symbol tree
oPrints each OP as it’s processed
- -fopt
Forces individual optimizations on or off. Preceding an optimization with
no-turns that option off (e.g.,no-compress-nullops). Possible values of opt are:bypass-nullopsIf
op->op_nextever points to a NULLOP, replaces theop_nextfield with the first non-NULLOP in the path of execution.compress-nullopsFills in only the necessary fields of ops that have been optimized away by Perl’s internal compiler.
omit-sequence-numbersLeaves out the code to fill in the
op_seqfield for all ops that are used only by Perl’s internal compiler.strip-syntax-tree ...
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