NAME ^

tools/build/pmc2c.pl - PMC definition to C compiler

SYNOPSIS ^

Options used in Parrot Makefile ^

Create src/pmc/foo.dump:

    % perl tools/build/pmc2c.pl --dump src/pmc/foo.pmc ...

Create vtable.dump:

    % perl tools/build/pmc2c.pl --vtable

Create src/pmc/foo.c and pmc_foo.h from src/pmc/foo.dump:

    % perl tools/build/pmc2c.pl -c src/pmc/foo.pmc ...

Other Options ^

Print a class tree for the specified PMCs:

    % perl tools/build/pmc2c.pl --tree src/pmc/*.pmc

Create fooX.c and pmc_fooX.h from fooX.dump files, also create libfoo.c containing the initialization function for all fooX PMCs.

    % perl tools/build/pmc2c.pl --library libfoo -c \
           src/pmc/foo1.pmc src/pmc/foo2.pmc ...

DESCRIPTION ^

The job of the PMC compiler is to take .pmc files and create C files that can be compiled for use with the Parrot interpreter.

COMMAND-LINE OPTIONS ^

--debug

Increase debug level

--verbose

Increase verbose level

--no-lines

Omit source line info

--include=/path/to/pmc

Specify include path where to find PMCs.

--library=libname

Specify the library name. This will create <libname>.c and pmc_<libname>.h. The initialization function will be named after libname and will initialize all PMCs in the library.

# Local Variables: # mode: cperl # cperl-indent-level: 4 # fill-column: 100 # End: # vim: expandtab shiftwidth=4:


parrot