Is it possible to do these things from a native C
or C++
-compiled program (gcc):
- Call
clang
and compile givenC
code of a function, passed asconst char *
. - Obtain a pointer and run it in the LLVM virtual machine.
- Acquire the result in the native program and continue.
How?