GraalVM作为ARM JRE的JIT编译器 [英] GraalVM as JIT compiler for ARM JRE

查看:102
本文介绍了GraalVM作为ARM JRE的JIT编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道GraalVM是否可以在ARM体系结构的OpenJDK发行版中用作JIT编译器?

Is someone know if GraalVM can be used as a JIT Compiler in an OpenJDK distribution for ARM architecture ?

graalVM github精确AMD架构和github ARM相关问题上可用的发行版与本机映像创建有关(因此适用于ARM的AOT编译器).也许还有一个问题:如果他们成功地为arm创建了本地映像,这是否意味着GraalVM也可以作为arm的JIT编译器使用?还是这两个东西是独立的?我从编译器生态系统开始:)

The releases available on graalVM github precise AMD architecture and github ARM related issues are related to native image creation (so AOT compiler for ARM). Maybe an additional question : If they succeed in native Image creation for arm, does it mean that GraalVM will also be available as JIT compiler for arm ? Or the 2 things are independants ? I begin in compiler ecosystem :)

非常感谢您的回答.

推荐答案

我忘了,看到Jorn Vernees的答案,OpenJDK 11已经包含Graal JIT.

I forgot, see Jorn Vernees answer, OpenJDK 11 already contains Graal JIT.

Graal JIT编译器也可以在ARM上运行,并且可以与OpenJDK一起使用.它不适用于OpenJDK8.OpenJDK9和10可能适用.我建议将其与OpenJDK 11配合使用(例如 adoptopenjdk ) .松露语言(Javascript,Python等)未经此体系结构测试.使graal JIT在AArch64上运行以从源代码构建它的最简单方法是:

The Graal JIT compiler works on ARM as well and can be used with OpenJDK. It does not work with OpenJDK 8. OpenJDK 9 and 10 may work. I would recommend to use it with OpenJDK 11 (e.g adoptopenjdk). Truffle languages (Javascript, Python, ...) are untested on this architecture. The easiest way to get graal JIT running on AArch64 to build it from source:

另请参见自述文件

export JAVA_HOME=/path/to/jdk-11
git clone https://github.com/oracle/graal.git
git clone https://github.com/graalvm/mx.git
export PATH=$(pwd)/mx:$PATH
cd graal/compiler
mx build
mx vm -cp test.jar org.something.Main

为了查看使用graal JIT运行Java所需的完整命令行,可以运行mx -v vm -cp test.jar org.something.Main.

In order to see the full commandline required for running java with graal JIT, you may run the mx -v vm -cp test.jar org.something.Main.

关于第二个问题:恰恰相反. JIT编译器已经存在,现在我们正在努力为AArch64提供native-image功能.

Regarding your second question: It is exactly the other way around. The JIT compiler is already there and now we are working on getting the native-image feature available for AArch64.

我希望这能回答您的问题.

I hope this answers your questions.

Stefan

这篇关于GraalVM作为ARM JRE的JIT编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆