mozilla

Revision 383071 of Pork

  • Revision slug: Pork
  • Revision title: Pork
  • Revision id: 383071
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment
Tags: 

Revision Content

Pork is a C++ parsing and rewriting tool chain. The core of Pork is a C++ parser that provides exact character positions for the start and end of every AST node, as well as the set of macro expansions that contain any location. This information allows C++ to be automatically rewritten in a precise way. The inputs driving the rewriting would normally be provided by a program-analysis system outside of Pork. (See Dehydra, Treehydra).

Pork has been tested mostly on Linux, but in theory it should be possible to make it work on other systems.

{{note("Pork is not presently used at Mozilla. Please refer to the oink link below for a more up-to-date toolchain.")}}

Pork is based on the Elsa (and Oink) tool chain, and the MCPP preprocessor. As of October 2009 Oink incorporates the Pork functionality into its standard distribution; look for files and tests having the prefix "xform".

Documentation

Installing Pork
Download, installation and dependency info for Pork
Pork Tools
Description of rewriting tools
Pork Tool Development
in progress page...
Old Pork Page
Pork details that haven't been moved to MDC
Renaming With Pork
Sample pork application
TODOs
Pork 1.0 release tracking bug
Pork releases
Download Pork here

Community

Blogs

Revision Source

<p><strong>Pork</strong> is a C++ parsing and rewriting tool chain. The core of Pork is a C++ parser that provides exact character positions for the start and end of every AST node, as well as the set of macro expansions that contain any location. This information allows C++ to be automatically rewritten in a precise way. The inputs driving the rewriting would normally be provided by a program-analysis system outside of Pork. (See Dehydra, Treehydra).</p>
<p>Pork has been tested mostly on Linux, but in theory it should be possible to make it work on other systems.</p>

<div>{{note("Pork is not presently used at Mozilla. Please refer to the oink link below for a more up-to-date toolchain.")}}</div>

<p>Pork is based on the <a href="http://www.eecs.berkeley.edu/~smcpeak/elkhound/" title="http://www.eecs.berkeley.edu/~smcpeak/elkhound/">Elsa</a> (and <a href="http://daniel-wilkerson.appspot.com/oink/index.html" title="http://daniel-wilkerson.appspot.com/oink/index.html">Oink</a>) tool chain, and the <a href="http://mcpp.sourceforge.net/" title="http://mcpp.sourceforge.net/">MCPP preprocessor</a>.  As of October 2009 Oink incorporates the Pork functionality into its standard distribution; look for files and tests having the prefix "xform".</p>
<table class="topicpage-table">
  <tbody>
    <tr>
      <td><h2 id="Documentation" name="Documentation" class="Documentation"><a href="/en-US/docs/tag/Pork" title="tag/Pork">Documentation</a></h2>
        <dl>
          <dt><a href="/en-US/docs/Installing_Pork">Installing Pork</a></dt>
          <dd><small>Download, installation and dependency info for Pork</small></dd>
          <dt><a href="/en-US/docs/Pork_Tools" title="Pork Tools">Pork Tools</a></dt>
          <dd>Description of rewriting tools</dd>
          <dt><a href="/en-US/docs/Pork_Tool_Development" title="Pork Tool Development">Pork Tool Development</a></dt>
          <dd>in progress page...</dd>
          <dt><a href="http://wiki.mozilla.org/Pork">Old Pork Page</a></dt>
          <dd><small>Pork details that haven't been moved to MDC</small></dd>
          <dt><a href="/en-US/docs/Renaming_With_Pork" title="Renaming_With_Pork">Renaming With Pork</a></dt>
          <dd><small>Sample pork application</small></dd>
          <dt><a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=438061">TODOs</a></dt>
          <dd><small>Pork 1.0 release tracking bug</small></dd>
          <dt><a href="http://ftp.mozilla.org/pub/mozilla.org/static-analysis/pork/">Pork releases</a></dt>
          <dd><small>Download Pork here</small></dd>
        </dl></td>
      <td><h2 id="Community" name="Community" class="Community">Community</h2>
        <ul>
          <li>View Pork Forums... {{DiscussionList("dev-static-analysis", "mozilla.dev.static-analysis")}}</li>
          <li><a class="link-irc" href="irc://irc.mozilla.org/static" title="irc://irc.mozilla.org/static">#static on irc.mozilla.org</a></li>
        </ul>
        <h2 id="Blogs" name="Blogs" class="Tools">Blogs</h2>
        <ul>
          <li><a href="http://blog.mozilla.com/tglek">Taras Glek</a></li>
          <li><a href="http://blog.mozilla.com/dmandelin">David Mandelin</a></li>
        </ul>
        <h2 id="Related_Topics" name="Related_Topics" class="Related_Topics">Related Topics</h2>
        <ul>
          <li><a href="/en-US/docs/Dehydra" title="Dehydra">Dehydra</a>, <a href="/en-US/docs/Treehydra" title="Treehydra">Treehydra</a>, <a href="http://wiki.mozilla.org/Mozilla_2">Mozilla 2</a>, <a href="/en-US/docs/SpiderMonkey" title="SpiderMonkey">SpiderMonkey</a></li>
        </ul></td>
    </tr>
  </tbody>
</table>
Revert to this revision