NAME

Parrot::Pmc2c::PMC - PMC model object

SYNOPSIS

    use Parrot::Pmc2c::PMC;

DESCRIPTION

Parrot::Pmc2c::PMC is used by tools/build/pmc2c.pl to generate C code from PMC files.

Functions

is_dynpmc
Determines if a given PMC type is dynamically loaded or not.
implements_vtable($method)
True if pmc generates code for vtable method $method.
vtable_method_does_write($method)
Returns true if the vtable method $method writes our value.

inherit_attrs()

    $class = inherit_attrs($class, $meth);

Purpose: Modify $attrs to inherit attrs from $super_attrs as appropriate.

Arguments: List of two arguments:

Return Values: Reference to hash holding the data structure being built up within dump_pmc().

Comments: Called within gen_super_meths().

These are auxiliary subroutines called inside the methods described above.

dump_is_current()

    dump_is_current($existing);

Purpose: Determines whether the dump of a file is newer than the PMC file. (If it's not, then the PMC file has changed and the dump has not been updated.)

Arguments: String holding filename.

Return Values: Returns true if timestamp of existing is more recent than that of PMC.

Comments: Called within dump_pmc().