GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  B::BYTECODE56 (3)

.ds Aq ’

NAME

B::Bytecode56 - Perl 5.6 compiler’s bytecode backend

CONTENTS

SYNOPSIS



        perl -MO=Bytecode[,OPTIONS] foo.pl



DESCRIPTION

This compiler backend takes Perl source and generates a platform-independent bytecode encapsulating code to load the internal structures perl uses to run your program. When the generated bytecode is loaded in, your program is ready to run, reducing the time which perl would have taken to load and parse your program into its internal semi-compiled form. That means that compiling with this backend will not help improve the runtime execution speed of your program but may improve the start-up time. Depending on the environment in which your program runs this may or may not be a help.

The resulting bytecode can be run with a special byteperl executable or (for non-main programs) be loaded via the byteload_fh function in the B module.

OPTIONS

If there are any non-option arguments, they are taken to be names of objects to be saved (probably doesn’t work properly yet). Without extra arguments, it saves the main program.
<B>-ofilenameB> Output to filename instead of STDOUT.
<B>-afilenameB> Append output to filename.
<B>--B> Force end of options.
<B>-fB> Force optimisations on or off one at a time. Each can be preceded by <B>no-B> to turn the option off (e.g. <B>-fno-compress-nullopsB>).
<B>-fcompress-nullopsB> Only fills in the necessary fields of ops which have been optimised away by perl’s internal compiler.
<B>-fomit-sequence-numbersB> Leaves out code to fill in the op_seq field of all ops which is only used by perl’s internal compiler.
<B>-fbypass-nullopsB> If op->op_next ever points to a NULLOP, replaces the op_next field with the first non-NULLOP in the path of execution.
<B>-OnB> Optimisation level (n = 0, 1, 2, ...). <B>-OB> means <B>-O1B>. <B>-O1B> sets <B>-fcompress-nullopsB> <B>-fomit-sequence numbersB>. <B>-O2B> adds <B>-fbypass-nullopsB>.
<B>-DB> Debug options (concatenated or separate flags like perl -D).
<B>-DoB> Prints each OP as it’s processed.
<B>-DbB> Print debugging information about bytecompiler progress.
<B>-DaB> Tells the (bytecode) assembler to include source assembler lines in its output as bytecode comments.
<B>-DCB> Prints each CV taken from the final symbol tree walk.
<B>-SB> Output (bytecode) assembler source rather than piping it through the assembler and outputting bytecode.
<B>-upackageB> Stores package in the output.

EXAMPLES



    perl -MO=Bytecode,-O6,-ofoo.plc,-umain foo.pl

    perl -MO=Bytecode,-S,-umain foo.pl > foo.S
    assemble foo.S > foo.plc



Note that assemble lives in the B subdirectory of your perl library directory. The utility called perlcc may also be used to help make use of this compiler.



    perl -MO=Bytecode,-uFoo,-oFoo.pmc Foo.pm



BUGS

Output is still huge and there are still occasional crashes during either compilation or ByteLoading. Current status: experimental.

AUTHORS

Malcolm Beattie, mbeattie@sable.ox.ac.uk Benjamin Stuhl, sho_pi@hotmail.com
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 B::BYTECODE56 (3) 2011-10-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.