gccjit
Tutorial
Creating a trivial machine code function
Loops and variables
Implementing a “brainf” compiler
Topic Reference
Compilation contexts
Types
Expressions
Functions
Source Locations
Compiling a context
gccjit
Docs
»
Tutorial
Edit on GitHub
Tutorial
ΒΆ
Creating a trivial machine code function
Options
Full example
Loops and variables
Visualizing the control flow graph
Full example
Implementing a “brainf” compiler
The “brainf” language
Converting a brainf script to libgccjit IR
Compiling a context to a file
Other forms of ahead-of-time-compilation