Although libgccjit is primarily aimed at just-in-time compilation, it can also be used for implementing more traditional ahead-of-time compilers, via the gccjit;;context;;compile_to_file() method.
Compile the gccjit;;context to a file of the given kind.
This is a thin wrapper around the gcc_jit_context_compile_to_file() API entrypoint.