Copyright (C) 2000-2012 |
Manpages B::BytecodeSection: Perl Programmers Reference Guide (3perl)Updated: 2001-02-22 Index Return to Main Contents NAMEB::Bytecode - Perl compiler's bytecode backendSYNOPSISperl -MO=Bytecode[,OPTIONS] foo.pl DESCRIPTIONThis 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. OPTIONSIf 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.
EXAMPLESperl -MO=Bytecode,-O6,-ofoo.plc,-umain foo.pl perl -MO=Bytecode,-S,-umain foo.pl > foo.S assemble foo.S > foo.plcNote 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 BUGSOutput is still huge and there are still occasional crashes during either compilation or ByteLoading. Current status: experimental.AUTHORSMalcolm Beattie, "mbeattie@sable.ox.ac.uk" Benjamin Stuhl, "sho_pi@hotmail.com"
IndexThis document was created by man2html, using the manual pages. Time: 19:34:28 GMT, April 19, 2024 |