I'm looking to do some realtime data processing within a cross-platform user-facing application, and I need some kind of just-in-time or just-ahead-of-time compilation of dynamically generated code to get the performance I need. I want to use the same library to generate code for a bare-metal microcontroller, but the microcontroller does not need to JIT anything. What's the best solution for embeddable dynamic code execution?
I think generating and running LLVM IR using the C++ API will be the best solution, unless another option is presented. Though the code generation might be low-level, it supports all relevant platforms, can cross compile, and has exceptional performance.