libgccjit is an API for embedding GCC inside programs and libraries.
libgccjit is an API for embedding GCC inside programs and libraries. It aims to provide an embeddable shared library with an API for adding compilation to existing programs using GCC as the backend:libgccjit.so.
This shared library can then be dynamically-linked into bytecode interpreters and other such programs that want to generate machine code "on the fly" at run-time.
There are actually two APIs for the library:
a pure C API: libgccjit.h a C++ wrapper API: libgccjit++.h. This is a collection of “thin” wrapper classes around the C API, to save typing.
Documentation: https://gcc.gnu.org/onlinedocs/jit/