Can gfortran perform link time optimization that would result in inlining a pure function from different translation unit?

188 Views Asked by At

We have a Fortran code base, that consists of large (over 5K lines) module files. The files grew so much, because of the fear, that the compiler would not be able to consider inlining cross-module function calls.

Is it still a concern with gcc >= 5.0?


We want to know if splitting the code into distinct modules would hinder the performance (as it did in the times, where there was no link-time optimization). Otherwise, we will use #includes, but we prefer to avoid it.

0

There are 0 best solutions below