2.11 Using Assembly Language with libgccjit

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 Code3 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

Footnotes

(3)

https://gcc.gnu.org/onlinedocs/gcc/Using-Assembly-Language-with-C.html