Parrot::OpTrans::CSwitch - C Switch Transform
Parrot::OpTrans::CSwitch inherits from Parrot::OpTrans::CPrederef to provide a mixture of predereferenced register addressing and a switched run loop.
Parrot::OpTrans::CSwitch
Parrot::OpTrans::CPrederef
switch
core_type()
The core type is PARROT_SWITCH_CORE.
PARROT_SWITCH_CORE
core_prefix()
The prefix is 'switch_'.
'switch_'
suffix()
The suffix is '_switch'.
'_switch'
defines()
Returns the C #define macros required by the ops.
#define
goto_address($address)
Transforms the goto ADDRESS($address) macro in an ops file into the relevant C code.
goto ADDRESS($address)
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()
run_core_func_start()
Returns the C code prior to the run core function.
run_core_split($base)
If defined return code to split e.g. a switch.
run_core_finish($base)
Returns the C code following the run core function.
Parrot::OpTrans
Parrot::OpTrans::C
Parrot::OpTrans::CGP
Parrot::OpTrans::CGoto
Parrot::OpTrans::Compiled
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.