Parrot::OpTrans::Compiled - Transform Parrot Bytecode To C
Parrot::OpTrans::Compiled inherits from Parrot::OpTrans and is used by tools/build/pbc2c.pl to transform Parrot bytecode to a C code run loop.
Parrot::OpTrans::Compiled
Parrot::OpTrans
defines()
Returns the C #define macros required by the ops.
#define
pc($pc)
pc()
Sets/gets the current position in Parrot code.
args(@args)
args()
Sets/gets the transform's arguments.
arg($index)
Returns the argument at index $index.
$index
goto_address($address)
Transforms the goto ADDRESS($address) macro in an ops file into the relevant C code.
goto ADDRESS($address)
expr_offset($offset)
An offset expression is always an offset from start_code, because the ret instruction may be in a different runops core. ret will always treat saved addresses as relative to start_code, because that interpretation is global across all runops cores.
start_code
ret
goto_offset($offset)
Transforms the goto OFFSET($offset) macro in an ops file into the relevant C code.
goto OFFSET($offset)
goto_pop()
Transforms the goto POP() macro in an ops file into the relevant C code.
goto POP()
access_arg($type, $value, $op)
Returns the C code for the specified op argument type (see Parrot::OpTrans) and value. $op is an instance of Parrot::Op.
$op
Parrot::Op
restart_address($address)
Returns the C code for restart ADDRESS($address).
restart ADDRESS($address)
restart_offset($offset)
Returns the C code for restart OFFSET($offset).
restart OFFSET($offset)
Parrot::OpTrans::C
Parrot::OpTrans::CGP
Parrot::OpTrans::CGoto
Parrot::OpTrans::CPrederef
Parrot::OpTrans::CSwitch
To install Parrot::Op, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parrot::Op
CPAN shell
perl -MCPAN -e shell install Parrot::Op
For more information on module installation, please visit the detailed CPAN module installation guide.