The idea is to generate C / C ++ code at runtime, compile it for a shared object, and load that shared object into the current process.
I know that this can be done using an existing compiler installation on the host platform (GCC or MSVC), but in a practical scenario the client does not have such an installation. Therefore, the idea is to statically link to such a compiler and linker.
For example, in Java, you can compile .java classes directly from java code. It can be used to automatically create Buisness objects from a database schema.
source share