B::C

B::C is Perl compiler's C backend.
Download

B::C Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Malcolm Beattie
  • Publisher web site:
  • http://search.cpan.org/~swalters/Sys-Mmap-0.13/Mmap.pm

B::C Tags


B::C Description

B::C is Perl compiler's C backend. B::C is Perl compiler's C backend.SYNOPSIS perl -MO=C foo.plThis compiler backend takes Perl source and generates C source code corresponding to the internal structures that perl uses to run your program. When the generated C source is compiled and run, it cuts out 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 be either a help or a hindrance.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.-ofilenameOutput to filename instead of STDOUT-vVerbose compilation (currently gives a few compilation statistics).--Force end of options-uPacknameForce apparently unused subs from package Packname to be compiled. This allows programs to use eval "foo()" even when sub foo is never seen to be used at compile time. The down side is that any subs which really are never used also have code generated. This option is necessary, for example, if you have a signal handler foo which you initialise with $SIG{BAR} = "foo". A better fix, though, is just to change it to $SIG{BAR} = &foo. You can have multiple -u options. The compiler tries to figure out which packages may possibly have subs in which need compiling but the current version doesn't do it very well. In particular, it is confused by nested packages (i.e. of the form A::B) where package A does not contain any subs.-DDebug options (concatenated or separate flags like perl -D).-DoOPs, prints each OP as it's processed-DcCOPs, prints COPs as processed (incl. file & line num)-DAprints AV information on saving-DCprints CV information on saving-DMprints MAGIC information on saving-fForce options/optimisations on or off one at a time. You can explicitly disable an option using -fno-option. All options default to disabled.-fcogCopy-on-grow: PVs declared and initialised statically.-fsave-dataSave package::DATA filehandles ( only available with PerlIO ).-fppaddrOptimize the initialization of op_ppaddr.-fwarn-svOptimize the initialization of cop_warnings.-fuse-script-nameUse the script name instead of the program name as $0.-fsave-sig-hashSave compile-time modifications to the %SIG hash.-OnOptimisation level (n = 0, 1, 2, ...). -O means -O1.-O0Disable all optimizations.-O1Enable -fcog.-O2Enable -fppaddr, -fwarn-sv.-llimitSome C compilers impose an arbitrary limit on the length of string constants (e.g. 2048 characters for Microsoft Visual C++). The -llimit options tells the C backend not to generate string literals exceeding that limit.Requirements:· Perl Requirements: · Perl


B::C Related Software