Re: in gfortran, is it faster compile times with *.mod files ?

Liste des GroupesRevenir à cl fortran 
Sujet : Re: in gfortran, is it faster compile times with *.mod files ?
De : lynnmcguire5 (at) *nospam* gmail.com (Lynn McGuire)
Groupes : comp.lang.fortran
Date : 12. Nov 2024, 00:09:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vgu2rb$16rop$2@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 11/11/2024 4:01 PM, Thomas Koenig wrote:
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?
1. you compile abc.f in IVF
2. IVF automagically creates an abc__genmod.f90 file in your release subdirectory with the subroutine / function module interface in it
Thanks,
Lynn

Date Sujet#  Auteur
11 Nov 24 * in gfortran, is it faster compile times with *.mod files ?10Lynn McGuire
12 Nov 24 +* Re: in gfortran, is it faster compile times with *.mod files ?7Thomas Koenig
12 Nov 24 i`* Re: in gfortran, is it faster compile times with *.mod files ?6Lynn McGuire
12 Nov 24 i `* Re: in gfortran, is it faster compile times with *.mod files ?5Thomas Koenig
12 Nov 24 i  `* Re: in gfortran, is it faster compile times with *.mod files ?4Lynn McGuire
12 Nov 24 i   `* Re: in gfortran, is it faster compile times with *.mod files ?3Thomas Koenig
13 Nov 24 i    `* Re: in gfortran, is it faster compile times with *.mod files ?2Lynn McGuire
14 Nov 24 i     `- Re: in gfortran, is it faster compile times with *.mod files ?1Thomas Koenig
12 Nov 24 `* Re: in gfortran, is it faster compile times with *.mod files ?2Lawrence D'Oliveiro
12 Nov 24  `- Re: in gfortran, is it faster compile times with *.mod files ?1Lynn McGuire

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal