How to add a builtin function in a GCC plugin? How to add a builtin function in a GCC plugin? c c

How to add a builtin function in a GCC plugin?


I'm assuming what you want to do (from your comment and linked post) is insert C code into a function. In that case, I would have thought you wouldn't need to go so far as to write a compiler plugin. Have a look at Boost.Preprocessor, which can do very advanced manipulations of C code using only the preprocessor.