<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Parrot - Create a template PMC file</title> <link rel="stylesheet" type="text/css" href="../../../resources/parrot.css" media="all"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <div id="wrapper"> <div id="header"> <a href="http://www.parrot.org"> <img border=0 src="../../../resources/parrot_logo.png" id="logo" alt="parrot"> </a> </div> <!-- "header" --> <div id="divider"></div> <div id="mainbody"> <div id="breadcrumb"> <a href="../../../html/index.html">Home</a> » <a href="../../../html/pmc.html">PMCs</a> » Create a template PMC file </div> <h1><a name="NAME" >NAME</a></h1> <p>tools/dev/gen_class.pl - Create a template PMC file</p> <h1><a name="SYNOPSIS" >SYNOPSIS</a></h1> <pre> % perl tools/dev/gen_class.pl Foo > src/pmc/Foo.pmc</pre> <h1><a name="DESCRIPTION" >DESCRIPTION</a></h1> <p>Use this script to generate a template PMC file with stubs for all the methods you need to fill in. See <em>docs/vtables.pod</em> for more information on adding a new PMC to Parrot.</p> <p>To see what a minimal PMC looks like, create a PMC template and compile it to C.</p> <pre> % perl tools/dev/gen_class.pl Foo > src/pmc/foo.pmc % perl tools/build/pmc2c.pl --dump src/pmc/foo.pmc % perl tools/build/pmc2c.pl -c src/pmc/foo.pmc</pre> <h1><a name="SEE_ALSO" >SEE ALSO</a></h1> <p><em>tools/build/pmc2c.pl</em>, <em>docs/vtables.pod</em>.</p> </div> <!-- "mainbody" --> <div id="divider"></div> <div id="footer"> Copyright © 2002-2011, Parrot Foundation. </div> </div> <!-- "wrapper" --> </body> </html>