Another good option is to use Joe Armstrong&#x27;s approach:  look at the LLVM IR generated by clang for example and then emit those.<p>My first attempt at using LLVM was using the C++ API.  It was...a struggle.   Using this approach (IR snippets), I made more progress in a day than I had in months using the API.