A gcc_jit_context encapsulates the state of a compilation.
You can set up options on it, and add types, functions and code, using
the API below.
Invoking gcc_jit_context_compile on it gives you a gcc_jit_result *
(or NULL), representing in-memory machine code.
You can call gcc_jit_context_compile repeatedly on one context, giving
multiple independent results.
Similarly, you can call gcc_jit_context_compile_to_file on a context
to compile to disk.
Eventually you can call gcc_jit_context_release to clean up the
context; any in-memory results created from it are still usable, and
should be cleaned up via gcc_jit_result_release.
A gcc_jit_context encapsulates the state of a compilation. You can set up options on it, and add types, functions and code, using the API below.
Invoking gcc_jit_context_compile on it gives you a gcc_jit_result * (or NULL), representing in-memory machine code.
You can call gcc_jit_context_compile repeatedly on one context, giving multiple independent results.
Similarly, you can call gcc_jit_context_compile_to_file on a context to compile to disk.
Eventually you can call gcc_jit_context_release to clean up the context; any in-memory results created from it are still usable, and should be cleaned up via gcc_jit_result_release.