"Muhammed Fawzy" <mfawzymkh@xxxxxxxxxxx> 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