Automatic Refactoring of Legacy Fortran Code to the Array Slicing Notation

Chandrasehar Rajaseharan, Wen Jun Tan, Wai Teng Tang, Stephen John Turner, Shyh-Hao Kuo, Rick Siow Mong Goh, Weng-Fai Wong

Abstract

There are many legacy Fortran programs still in use today, especially scientific codes which were written decades ago. Many of these codes use explicit DO-loops in programs that tend to clutter the code and make it harder to understand and maintain. Modern features of the Fortran language, such as the array slicing notation and introduction of commonly used intrinsic functions, go a long way in helping programmers write code that is easier to read and maintain. We introduce a refactoring tool that can help to transform code to make use of the array slicing notation and related intrinsic functions.
BibTeX
@inproceedings{rajaseharan2012automatic,
  author = {Chandrasehar Rajaseharan and Wen Jun Tan and Wai Teng Tang and Stephen John Turner and Shyh-Hao Kuo and Rick Siow Mong Goh and Weng-Fai Wong},
  title = {{Automatic Refactoring of Legacy Fortran Code to the Array Slicing Notation}},
  booktitle = {ICPADS},
  year = {2012},
  doi = {10.1109/icpads.2012.101},
}

Loading related content...

Figure