How to use GCC as a library, e.g. from another C program
- http://programmers.stackexchange.com/questions/189949/is-there-a-way-to-use-gcc-as-a-library
- http://stackoverflow.com/questions/1735360/compiling-program-within-another-program-using-gcc
- http://stackoverflow.com/questions/8144793/gcc-for-parsing-code
libgccjit
from GCC 5 goes a long way.