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!
The language definition of C++ is not machine independent so the exact
meaning of a particular source program varies from platform to
platform. For example there are significant differences in the
interpretation of programs on big-endian as opposed to little-endian
platforms, and even between 32-bit and 64-bit processors in the same
family. Furthermore there are vast differences between different
operating systems. Dealing with those differences is one of the issues
that Java was designed to address.
--
Jim Cobban jcobban@xxxxxxxx
34 Palomino Dr.
Kanata, ON, CANADA
K2M 1M1
+1-613-592-9438