Compiling C++ for the JVM

后端 未结 2 1071
温柔的废话
温柔的废话 2020-12-13 03:44

When compiling C++ you of course use a compiler for the target platform you want to compile for. Is there a C++ compiler that targets the JVM (so instead of using the Java \

相关标签:
2条回答
  • 2020-12-13 04:35

    NestedVM provides binary translation for Java Bytecode. This is done by having GCC compile to a MIPS binary which is then translated to a Java class file. Hence any application written in C, C++, Fortran, or any other language supported by GCC can be run in 100% pure Java with no source changes.

    0 讨论(0)
  • 2020-12-13 04:35

    As I have answerd on this similar SO question there is a new kid in town called gcc-bridge. It's a maven plugin and supports all the gnu laguages like c, c++, fortran.

    0 讨论(0)
提交回复
热议问题