Skip to Main Content
Perl in a Nutshell, 2nd Edition
book

Perl in a Nutshell, 2nd Edition

by Nathan Patwardhan, Ellen Siever, Stephen Spainhour
June 2002
Beginner content levelBeginner
759 pages
80h 42m
English
O'Reilly Media, Inc.
Content preview from Perl in a Nutshell, 2nd Edition

B::C

The C backend for the Perl compiler. Generates C source code from Perl source; the generated code corresponds to Perl’s internal structures for running the program. Compiling with the C backend won’t speed up execution of your program, but it may improve start-up time. Invoke as:

perl -MO=C[,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:

A

Prints AV information on saving

c

Prints COPs as they are processed, including file and line number

C

Prints CV information on saving

M

Prints MAGIC information on saving

o

Prints each OP as it’s processed

-fopt

Forces individual optimizations on or off. Possible values of opt are:

cog

Copy-on-grow. PVs are declared and initialized statically.

no-cog

No copy-on-grow.

-ofilename

Sends output to filename instead of to STDOUT.

-O[ n ]

Sets optimization level, in which n is an integer. n defaults to 1. Currently, values of 1 and higher set cog.

-uPackname

Forces apparently unused subroutines from package Packname to be compiled, letting programs use eval "foo( )" even if subroutine foo isn’t seen to be used at compile time. You can specify multiple -u options.

-v

Compiles verbosely.

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.
Start your free trial

You might also like

Perl by Example, Fourth Edition

Perl by Example, Fourth Edition

Ellie Quigley
Perl Cookbook, 2nd Edition

Perl Cookbook, 2nd Edition

Tom Christiansen, Nathan Torkington
Perl in a Nutshell

Perl in a Nutshell

Nathan Patwardhan, Ellen Siever, Stephen Spainhour
Learning Perl, 7th Edition

Learning Perl, 7th Edition

Randal L. Schwartz, brian d foy, Tom Phoenix

Publisher Resources

ISBN: 0596002416Errata Page