Hi, On Fri, 30 Mar 2012, Gabriel Dos Reis wrote:
> On Fri, Mar 30, 2012 at 7:45 PM, David Malcolm <dmalc...@redhat.com> wrote: > > > Here's another proposal then: actually use GObject introspection - > > provide a GObject-based API to GCC. > > > > In this approach, GCC would gain a dependency on glib and gobject, and > > expose its API via a .gir file. > > I greatly prefer the other alternative, by far. By far, by far, by far! I can't repeat it enough :) glibc/gobject in cc1, *shudder*. I think a clean C only API would be the best, and if only because a multitude of wrapper generators exist that work with that. If you do away with the strange Gcc prefix and the 'I' suffix (Interface?) and use some common abbreviations (cfgblock -> bb, cfgedge -> edge, cgraph -> cg) it wouldn't be even too unwieldy. Ciao, Michael.