The libopcodes library is generated as an aritifact of gcc build. The library supports API calls which decode a given instruction encoding. A python plugin(which implements the pluggy decoder plugin specification as defined here) can be interfaced with the C library using python bindings. This would greatly reduce developmental and maintenance overheads for new extensions. A sample decode plugin can be found here.
Summary
The libopcodes library is generated as an aritifact of gcc build. The library supports API calls which decode a given instruction encoding. A python plugin(which implements the pluggy decoder plugin specification as defined here) can be interfaced with the C library using python bindings. This would greatly reduce developmental and maintenance overheads for new extensions. A sample decode plugin can be found here.