NAME ^

Parrot::OpTrans::C - Ops to C Code Generation

DESCRIPTION ^

Parrot::OpTrans::C inherits from Parrot::OpTrans to provide a function-based (slow or fast core) run loop.

Instance Methods ^

core_type()

Returns PARROT_FUNCTION_CORE.

core_prefix()

Returns an empty string.

defines()

Returns the C #define macros for register access etc.

gen_goto($where)

Reimplements the superclass method so that $where is suitably cast.

expr_address($address)

Returns the C code for ADDRESS($address). Called by goto_address().

expr_offset($offset)

Returns the C code for OFFSET($offset). Called by goto_offset().

expr_pop()

Returns the C code for POP(). Called by goto_offset().

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.

restart_offset($offset)

Returns the C code for restart OFFSET($offset).

restart_address($address)

Returns the C code for restart ADDRESS($address).

SEE ALSO ^

Parrot::OpTrans

Parrot::OpTrans::CGP

Parrot::OpTrans::CGoto

Parrot::OpTrans::CPrederef

Parrot::OpTrans::CSwitch

Parrot::OpTrans::Compiled


parrot