
Originally Posted by
mateli
Unfortunately there are not open source compiler for C++ to CIL. Nor are there any Java compier. There are a closed source C++ compiler that are not publicly available. Also there are a JVM for .NET.
IKVM.NET is a Free Software compiler which can compile Java bytecode into .NET bytecode, and execute Java bytecode directly using the system's .NET runtime (whether Microsoft.NET or Mono). It's based on OpenJDK's source.
Code:
directhex@dream:/tmp$ ikvm hello
Hello World!
directhex@dream:/tmp$ java hello
Hello World!
directhex@dream:/tmp$ ikvmc -target:exe hello.class
Note IKVMC0001: found main method in class "hello"
Note IKVMC0002: output file is "hello.exe"
directhex@dream:/tmp$ mono hello.exe
Hello World!