|
Mathematical Foundations of Programming
Efficiency investigation of BT-object based partial evaluation of interpreters written in the Java object-oriented language
I. A. Adamovicha, Yu. A. Klimovb a Ailamazyan Program Systems Institute of RAS, Ves'kovo, Russia
b Keldysh Institute of Applied Mathematics of RAS, Moscow, Russia
Abstract:
Barriers of real object-oriented program specialization can be often overcome using modern metacomputation techniques. One of the barriers is the resolution of polymorphism at the stage of program analysis before the execution of the program. The last problem is successfully solved for a number of cases in the JaSpe specializer, as shown in this paper. The paper is devoted to the program compilation by specialization methods, without the use of a compiler. We have applied the partial evaluator JaSpe to two arithmetic expression language interpreters written in Java. The interpreters were implemented using the recursive descent method and the visitor pattern. As a result of the successful specialization of these interpreters by the square root program written on arithmetic expression language, compiled versions of the latter were obtained. In this case, the acceleration was from 12 to 22 times.
Key words and phrases:
interpreters, compilers, partial evaluation, specialization, metacomputations.
Received: 02.11.2022 Accepted: 05.12.2022
Citation:
I. A. Adamovich, Yu. A. Klimov, “Efficiency investigation of BT-object based partial evaluation of interpreters written in the Java object-oriented language”, Program Systems: Theory and Applications, 13:4 (2022), 111–137
Linking options:
https://www.mathnet.ru/eng/ps411 https://www.mathnet.ru/eng/ps/v13/i4/p111
|
Statistics & downloads: |
Abstract page: | 66 | Full-text PDF : | 43 | References: | 21 |
|