The essence of program transformation by partial evaluation and driving

Author(s):  
Neil D. Jones
2002 ◽  
Vol 20 (1) ◽  
pp. 1-2 ◽  
Author(s):  
Robert Glück ◽  
Yoshihiko Futamura

Author(s):  
Wim Vanderbauwhede

AbstractFortran is still widely used in scientific computing, and a very large corpus of legacy as well as new code is written in FORTRAN 77. In general this code is not type safe, so that incorrect programs can compile without errors. In this paper, we present a formal approach to ensure type safety of legacy Fortran code through automated program transformation. The objective of this work is to reduce programming errors by guaranteeing type safety. We present the first rigorous analysis of the type safety of FORTRAN 77 and the novel program transformation and type checking algorithms required to convert FORTRAN 77 subroutines and functions into pure, side-effect free subroutines and functions in Fortran 90. We have implemented these algorithms in a source-to-source compiler which type checks and automatically transforms the legacy code. We show that the resulting code is type safe and that the pure, side-effect free and referentially transparent subroutines can readily be offloaded to accelerators.


1990 ◽  
Vol 19 (3) ◽  
pp. 24-29 ◽  
Author(s):  
Li Lei ◽  
G.-H. Moll ◽  
J. Kouloumdjian

Sign in / Sign up

Export Citation Format

Share Document