RUS  ENG
Full version
JOURNALS // Program Systems: Theory and Applications // Archive

Program Systems: Theory and Applications, 2022 Volume 13, Issue 4, Pages 111–137 (Mi ps411)

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.

UDC: 519.681.3

MSC: Primary 68N15; Secondary 68N19, 68N20, 68N30

Received: 02.11.2022
Accepted: 05.12.2022

DOI: 10.25209/2079-3316-2022-13-4-111-137



© Steklov Math. Inst. of RAS, 2024