User: Password:
Subscribe / Log in / New account

gcc-python-plugin 0.8

From:  David Malcolm <>
Subject:  ANN: gcc-python-plugin 0.8
Date:  Tue, 10 Jan 2012 14:58:39 -0500
Message-ID:  <1326225520.2123.79.camel@surprise>
Archive-link:  Article

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.

It ships with "gcc-with-cpychecker", which implements static analysis
passes for GCC aimed at finding bugs in CPython extensions.  In
particular, it can automatically detect reference-counting errors:

Detailed release notes can be seen at:

Some highlights of the 0.8 release:

  * it's much easier than before to emit compilation warnings

  * initial support for analyzing C++ code from a Python script

  * gcc-with-cpychecker has gained additional tests.  It now has
knowledge of which CPython API calls will crash when passed NULL, and
will warn you (with details) about code paths that can trigger such a
call.   It can also now detect certain subtle errors in PyMethodDef

  * numerous bug fixes and other improvements

Tarball releases are available at:

Prebuilt-documentation can be seen at:

The project's homepage is:

The plugin and checker are Free Software, licensed under the GPLv3 or
later.  Thanks to Red Hat for funding their development, and to David
Narvaez and Tom Tromey for their contributions to this release.

Dave Malcolm


        Support the Python Software Foundation:

(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds