ANN: gcc-python-plugin 0.6

David Malcolm dmalcolm at
Tue Aug 2 22:12:36 CEST 2011

gcc-python-plugin is a plugin for GCC 4.6 onwards which embeds the
CPython interpreter within GCC, allowing you to write new compiler
warnings in Python, generate code visualizations, etc.

Tarball releases are available at:

Prebuilt-documentation can be seen at:

Project homepage:

What's new in v0.6:

  - It's now possible to create new gcc passes in Python, rather than
just wire up callbacks to existing passes.  See:

  - GCC's callgraph information is now visible via a Python API.  See:

  - GCC's Register Transfer Language is now visible via a Python API
(albeit a rather primitive one so far).

  - Improvements to Python 3 support (the selftests are now built and
run against the version of Python that the plugin was compiled against,
rather than hardcoding Python 2.7; various Python 3 and --with-py-debug
compatibility issues that this shook out are now fixed).

  - Various other minor fixes


More information about the Python-announce-list mailing list