3 ms·
You can compile java to LLVM or create dll/so files. * https://www.graalvm.org/ https://www.graalvm.org/ * https://www.graalvm.org/docs/reference-manual/aot-c
by merb 7y ago
You can compile java to LLVM or create dll/so files.
* https://www.graalvm.org/ https://www.graalvm.org/
* https://www.graalvm.org/docs/reference-manual/aot-compilation/ https://www.graalvm.org/docs/reference-manual/aot-compilatio...
You only need to pass `--shared`. (You can also define multiple exports via public static ... and some annotations https://github.com/oracle/graal/blob/master/substratevm/README.md#images-and-entry-points https://github.com/oracle/graal/blob/master/substratevm/READ...)
of course it's a little bit akward to first create a "JVM" library and then call that library from native code, but it's not impossible.
- IloveHN84 7y agoThat's a bad idea and Windows is still experimental.