Optymizer Sez wrote:
Hi! I'd like to ask if there is a way to use GCC in order to compile a C++ source program into machine-independent code (bytecode, perhaps?) and then translate the bytecode into processor-dependent code on the target machine? Something like the Amsterdam Compiler Kit, but for C++ and x86_64 would be great!
Why not just shell to g++ then dlopen() the object? That would require the compiler on your target, but it lets you execute runtime provided source in your application [which btw is a horrible security nightmare...]
Tom