RUS  ENG
Full version
JOURNALS // Modelirovanie i Analiz Informatsionnykh Sistem // Archive

Model. Anal. Inform. Sist., 2021 Volume 28, Number 2, Pages 198–214 (Mi mais744)

This article is cited in 1 paper

Theory of computing

The system for transforming the code of dataflow programs into imperative

V. S. Vasilyeva, A. I. Legalovb, S. V. Zykovb

a Siberian Federal University, 79 Svobodny Ave., Krasnoyarsk 660041, Russia
b Higher school of Economics, National research University, 20 Myasnitskaya str., Moscow 101000, Russia

Abstract: Functional dataflow programming languages are designed to create parallel portable programs. The source code of such programs is translated into a set of graphs that reflect information and control dependencies. The main way of their execution is interpretation, which does not allow to perform calculations efficiently on real parallel computing systems and leads to poor performance. To run programs directly on existing computing systems, you need to use specific optimization and transformation methods that take into account the features of both the programming language and the architecture of the system. Currently, the most common is the Von Neumann architecture, however, parallel programming for it in most cases is carried out using imperative languages with a static type system. For different architectures of parallel computing systems, there are various approaches to writing parallel programs. The transformation of dataflow parallel programs into imperative programs allows to form a framework of imperative code fragments that directly display sequential calculations. In the future, this framework can be adapted to a specific parallel architecture. The paper considers an approach to performing this type of transformation, which consists in allocating fragments of dataflow parallel programs as templates, which are subsequently replaced by equivalent fragments of imperative languages. The proposed transformation methods allow generating program code, to which various optimizing transformations can be applied in the future, including parallelization taking into account the target architecture.

Keywords: transformation of programs, dataflow parallel programming, program analysis, typing, intermediate program representations.

UDC: 004.4’42

Received: 07.05.2021
Revised: 31.05.2021
Accepted: 02.06.2021

DOI: 10.18255/1818-1015-2021-2-198-214



© Steklov Math. Inst. of RAS, 2024