I am looking for some compiler in form of a library that I could include in my program and use to compile C++ source. It should do something like this:

const unsigned char* binary = compiler::compile_function_source(R"(
    int add(int a, int b) {
        return a + b;

I couldn't find any. All I get is tutorials on how to compile a C++ library... Do you know any, that you could recommend?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy