Generic Programming in FORTRAN Language: Realization of High-Performance Generic Container by Using Preprocessor
Download as PDF
DOI: 10.23977/iset.2019.020
Author(s)
Ruihua Zhu, Lina Ning
Corresponding Author
Ruihua Zhu
ABSTRACT
The Performance of several containers, including the generic type containers simulated by object-oriented programming in FORTRAN language and the ordinary container also written in FORTRAN language, are investigated. The container of highest performance and the lowest performance is the ordinary container and the generic container by object-oriented programming, respectively. In order to achieve a high-performance generic container, a preprocessor is written used to translate the generic programming codes to the ordinary codes. With preprocessing, the abstract programming and high-performance codes are implemented at the same time.
KEYWORDS
Generic programming, generic container, FORTRAN, preprocessor