This manual page is for Mac OS X version 10.6

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



B::Asmdata(3pm)                       Perl Programmers Reference Guide                       B::Asmdata(3pm)



NAME
       B::Asmdata - Autogenerated data about Perl ops, used to generate bytecode

SYNOPSIS
               use B::Asmdata qw(%insn_data @insn_name @optype @specialsv_name);

DESCRIPTION
       Provides information about Perl ops in order to generate bytecode via a bunch of exported variables.
       Its mostly used by B::Assembler and B::Disassembler.

       %insn_data
             my($bytecode_num, $put_sub, $get_meth) = @$insn_data{$op_name};

           For a given $op_name (for example, 'cop_label', 'sv_flags', etc...)  you get an array ref con-taining containing
           taining the bytecode number of the op, a reference to the subroutine used to 'PUT', and the name
           of the method used to 'GET'.

       @insn_name
             my $op_name = $insn_name[$bytecode_num];

           A simple mapping of the bytecode number to the name of the op.  Suitable for using with
           %insn_data like so:

             my $op_info = $insn_data{$insn_name[$bytecode_num]};

       @optype
             my $op_type = $optype[$op_type_num];

           A simple mapping of the op type number to its type (like 'COP' or 'BINOP').

       @specialsv_name
             my $sv_name = $specialsv_name[$sv_index];

           Certain SV types are considered 'special'.  They're represented by B::SPECIAL and are referred to
           by a number from the specialsv_list.  This array maps that number back to the name of the SV
           (like 'Nullsv' or '&PL_sv_undef').

AUTHOR
       Malcolm Beattie, "[email protected]"



perl v5.8.9                                      2001-09-21                                  B::Asmdata(3pm)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation to the Perl project. (See perlbug(1) for submission instructions.)
Bug reports
Report bugs in the functionality of the described tool or API to Apple through Bug Reporter and to the Perl project using perlbug(1).
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.