3.2.7.2 Ahead-of-time compilation

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.

C++ Function: void gccjit::context::compile_to_file (enum gcc_jit_output_kind, const char *output_path)

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.