Description :
This is a plugin for GCC, which links against libpython, and (I hope) allows you to invoke arbitrary Python scripts from inside the compiler. The aim is to allow you to write GCC plugins in Python.
The plugin is Free Software, licensed under the GPLv3 (or later).
It\'s still at the \"experimental proof-of-concept stage\"; expect crashes and tracebacks (I\'m new to insides of GCC, and I may have misunderstood things).
It\'s already possible to use this to add additional compiler errors/warnings, e.g. domain-specific checks, or static analysis. One of my goals for this is to \"teach\" GCC about the common mistakes people make when writing extensions for CPython, but it could be used e.g. to teach GCC about GTK\'s reference-counting semantics, or about locking in the Linux kernel, or about signal-safety in APIs.
|