Sujet : Re: in gfortran, is it faster compile times with *.mod files ?
De : tkoenig (at) *nospam* netcologne.de (Thomas Koenig)
Groupes : comp.lang.fortranDate : 11. Nov 2024, 23:01:35
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vgturv$16fp9$1@dont-email.me>
References : 1
User-Agent : slrn/1.0.3 (Linux)
Lynn McGuire <
lynnmcguire5@gmail.com> schrieb:
In gfortran, is it faster compile times with *.mod files ? Or is it
just as fast compiling to include the module interface information in
each subroutine / function file ?
I haven't benchmarked this, but I think likely that there would only
be a small difference. Usually, the front end only takes a small part of
compilation time (but there are pathological cases).
In general, modules are better because of automatic checking.
If you want to avoid recompilation cascades, submodules (where
you can separate the definition from the implementation) might
be worth looking into.
Is there any chance that gfortran will automatically generate and use
module files in the future like IVF ?
Not sure what you're asking for. Can you give an example?