{"title":"Design and Implementation of Pep, A Java Just-in-Time Translator","authors":"Ole Agesen","doi":"10.1002/(SICI)1096-9942(1997)3:2<127::AID-TAPO4>3.0.CO;2-S","DOIUrl":null,"url":null,"abstract":"Java, a new object-oriented member of the C family of languages, has become popular in part because it emphasizes portability. Portability is achieved by compiling programs to machine-independent bytecodes that can be interpreted on a Java virtual machine. Unfortunately, interpreted performance does not match native code performance. A just-in-time compiler can regain performance without sacrificing portability by turning the bytecodes into native code at runtime. This idea has a proven track record: Deutsch and Schiffman presented a dynamic Smalltalk compiler in 1984 [5], and the Self system currently sports a dynamic type-feedback based optimizing compiler [12]. To study the performance potential of Java with this state-of-the-art optimization technology, we built Pep, a just-in-time compiler from Java bytecodes to Self. Following translation by Pep, Java programs can execute on the Self virtual machine and benefit from the optimizations performed by Self's compiler. We describe the design and implementation of Pep, focusing on concepts and trade-offs, but also compare performance with the JDK 1.0.2 and 1.1 interpreters. © 1997 John Wiley & Sons, Inc.","PeriodicalId":293061,"journal":{"name":"Theory Pract. Object Syst.","volume":"92 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1997-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"10","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Theory Pract. Object Syst.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1002/(SICI)1096-9942(1997)3:2<127::AID-TAPO4>3.0.CO;2-S","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 10
Java即时翻译器Pep的设计与实现
Java是C语言家族中面向对象的新成员,它之所以流行,部分原因在于它强调可移植性。可移植性是通过将程序编译成可在Java虚拟机上解释的与机器无关的字节码来实现的。不幸的是,解释型代码的性能与本机代码的性能不匹配。通过在运行时将字节码转换为本机代码,即时编译器可以在不牺牲可移植性的情况下恢复性能。这个想法有一个经过验证的记录:Deutsch和Schiffman在1984年提出了一个动态Smalltalk编译器[5],而Self系统目前采用了一个基于动态类型反馈的优化编译器[12]。为了利用这种最先进的优化技术研究Java的性能潜力,我们构建了Pep,这是一个从Java字节码到Self的即时编译器。经过Pep的翻译后,Java程序可以在Self虚拟机上执行,并从Self编译器执行的优化中获益。我们将描述Pep的设计和实现,重点关注概念和权衡,但也将性能与JDK 1.0.2和1.1解释器进行比较。©1997 John Wiley & Sons, Inc
本文章由计算机程序翻译,如有差异,请以英文原文为准。