C++ intermediate bytecode

Dario Saccavino kathoum@gmail.com
Sat Jul 19 13:11:00 GMT 2008


2008/7/14 Optymizer Sez <optymizer@yahoo.com>:
> 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!
>

Hi, I'm not a GCC expert, but there is LLVM (http://llvm.org), that
provides an infrastructure to compile C and C++ programs into some
kind of bytecode. The compiler is "GCC-based" and the bytecode can be
translated to native code or interpreted on the target machine.

   Dario



More information about the Gcc-help mailing list