arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2112.14716cs.PL
收藏

多语言高性能虚拟机GraalVM研究

Exploring Aspects of Polyglot High-Performance Virtual Machine GraalVM

M. Šipek, B. Mihaljević, A. Radovan

摘要:

当代软件往往变得非常复杂,我们需要使用各种技术和不同的程序设计语言来进行开发。由于程序设计语言之间的互操作性可能会导致高开销,从而导致性能损失,因此研究当前使用高级面向对象语言编写的编译器的多语言虚拟机如何处理它非常重要。OpenJDK的Project Metropolis提出了GraalVM,这是一个开源的高性能多语言虚拟机,主要用Java编写。本文介绍了GraalVM的体系结构及其功能,并进一步研究了它如何解决常见的互操作性和性能问题。GraalVM在结合各种程序设计语言时使软件生态系统富有成效,例如Java,JavaScript,C/C++,Python,Ruby,R等。GraalVM的重要部分是用Java编写的Graal编译器,与传统的C/C++语言编译器相比,它允许开发人员更快,更简单,更高效地维护和优化代码。Graal可以用作即时(JIT)或静态提前(AOT)编译器。Graal是一个积极优化的编译器,实现了常见的编译器优化,重点是出色的内联和转义分析算法。本文将Graal与一些最专业的竞争对手进行了比较,并提出了我们在学术环境中测试的结果。

英文摘要:

Contemporary software often becomes vastly complex, and we are required to use a variety of technologies and different programming languages for its development. As interoperability between programming languages could cause high overhead resulting in a performance loss, it is important to examine how a current polyglot virtual machine with a compiler written in a high-level object-oriented language deals with it. OpenJDK's Project Metropolis presented the GraalVM, an open-source, high-performance polyglot virtual machine, mostly written in Java. This paper presents GraalVM's architecture and its features; furthermore, examining how it resolves common interoperability and performance problems. GraalVM makes software ecosystem productive when combining various programming languages, for example, Java, JavaScript, C/C++, Python, Ruby, R, and others. The vital part of GraalVM is the Graal compiler written in Java, which allows developers to maintain and optimize code faster, simpler, and more efficient, in comparison to traditional compilers in C/C++ languages. Graal can be used as a just-in-time (JIT) or as static, ahead-of-time (AOT) compiler. Graal is an aggressively optimizing compiler implementing common compiler optimizations, with emphasis on outstanding inlining and escape analysis algorithms. This paper compares Graal with some of the best-specialized competitors, and presents our results tested within an academic environment.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑