libgccjit has some support for directly embedding assembler instructions.
This is based on GCC’s support for inline asm
in C code, and the
following assumes a familiarity with that functionality. See
How to Use Inline Assembly Language in C Code11
in GCC’s documentation, the “Extended Asm” section in particular.
These entrypoints were added in LIBGCCJIT_ABI_15; you can test for their presence using
#ifdef LIBGCCJIT_HAVE_ASM_STATEMENTS