ANN: gcc-python-plugin 0.6

David Malcolm dmalcolm at redhat.com
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:
  https://fedorahosted.org/releases/g/c/gcc-python-plugin/

Prebuilt-documentation can be seen at:
  http://readthedocs.org/docs/gcc-python-plugin/en/latest/index.html

Project homepage:
  https://fedorahosted.org/gcc-python-plugin/

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:
http://readthedocs.org/docs/gcc-python-plugin/en/latest/passes.html#creating-new-optimization-passes

  - GCC's callgraph information is now visible via a Python API.  See:
http://readthedocs.org/docs/gcc-python-plugin/en/latest/callgraph.html

  - 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


Enjoy!
Dave




More information about the Python-announce-list mailing list