Code Gen Plugins

Ian Lance Taylor iant@google.com
Tue Dec 22 15:55:00 GMT 2009


"Muhammed Fawzy" <mfawzymkh@hotmail.com> writes:

>    I would like to know if  it is possible with GCC Plugins to write a
> code gen plugin to modify certain things.
> What I want to achieve is to use the gcc backend, but only change the
> way callsites are generated,  so the plugin should fallback to use
> gcc, and only works when gcc tries to emit code to call functions..
>
> is this something possible with gcc?

If I understand you correctly, then the answer is yes.  A plugin can
insert new compilation passes which can manipulate the instruction
steam however you like.

Ian



More information about the Gcc-help mailing list