Manual Pages for UNIX Darwin command on man B::Asmdata
MyWebUniversity

Manual Pages for UNIX Darwin command on man B::Asmdata

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

NAME

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

code

SYNOPSIS

use B::Asmdata qw(%insndata @insnname @optype @specialsvname);

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.

%insndata

my($bytecodenum, $putsub, $getmeth) = @$insndata{$opname};

For a given $opname (for example, 'coplabel', 'svflags', etc...)

you get an array ref containing the bytecode number of the op, a reference to the subroutine used to 'PUT', and the name of the method used to 'GET'. @insnname

my $opname = $insnname[$bytecodenum];

A simple mapping of the bytecode number to the name of the op.

Suitable for using with %insndata like so:

my $opinfo = $insndata{$insnname[$bytecodenum]};

@optype

my $optype = $optype[$optypenum];

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

my $svname = $specialsvname[$svindex];

Certain SV types are considered 'special'. They're represented by B::SPECIAL and are referred to by a number from the specialsvlist. This array maps that number back to the name of the SV (like 'Nullsv' or '&PLsvundef'). AUTHOR Malcolm Beattie, "mbeattie@sable.ox.ac.uk"

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




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™