2-4 July 2020
University of Zurich
Europe/Zurich timezone

Front-end optimization in gfortran

2 Jul 2020, 17:50
ZOOM (University of Zurich)


University of Zurich

Selected Presentations Session B


Dr Thomas König (Gnu Fortran maintainer)


The gfortran front end to gcc reads in the source code and converts it to an abstract syntax tree, which is then converted to an intermediate representation which gcc then further optimizes and converts into assembler. However, there are certain optimizations that require knowledge of Fortran semantics and which are better handled at the level of the abstract syntax tree because the rest of the compiler is language-agnostic. In other words, the compiler rewrites the source code representation to something that the user ought to have written.

This presentation gives an overview of what transformations are currently done, how their effect can be controlled by the user and what future developments might be. On that last point, input from the community is highly welcome.

Primary author

Dr Thomas König (Gnu Fortran maintainer)

Presentation Materials