免费的 AOT Java 编译器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4019724/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 04:24:55  来源:igfitidea点击:

Free AOT Java compiler

javacompiler-constructionaot

提问by dede

Does anyone know some free AOT Java compiler? I have found just one - http://gcc.gnu.org/java/.

有谁知道一些免费的 AOT Java 编译器?我只找到了一个 - http://gcc.gnu.org/java/

回答by m. m.

https://www.excelsiorjet.com/

https://www.excelsiorjet.com/

As of now, it fully supports Java SE 8 and the Standard Edition is free (but only supports 32-bit Windows and Linux.)

截至目前,它完全支持 Java SE 8,标准版是免费的(但仅支持 32 位 Windows 和 Linux。)

回答by Nathan

GCJ , as you've already noted, is probably your best option. If you're looking for something that runs on Windows you'll need to setup a Cygwinor MinGWenvironment that runs the GCC.

正如您已经指出的那样,GCJ可能是您的最佳选择。如果您正在寻找在 Windows 上运行的东西,您需要设置一个运行 GCC的CygwinMinGW环境。

JNCis an old one that may still work, it was built for Java 1.5 and is based on the GCC.

JNC是一个可能仍然有效的旧版本,它是为 Java 1.5 构建的,基于 GCC。

回答by Lou Franco

Not sure how finished it is, but this project uses LLVM and can AOT compile Java and .NET

不确定它是如何完成的,但是这个项目使用 LLVM 并且可以 AOT 编译 Java 和 .NET

http://vmkit.llvm.org/

http://vmkit.llvm.org/