Deutsch   English   Français   Italiano  
<vgu2rb$16rop$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lynn McGuire <lynnmcguire5@gmail.com>
Newsgroups: comp.lang.fortran
Subject: Re: in gfortran, is it faster compile times with *.mod files ?
Date: Mon, 11 Nov 2024 17:09:32 -0600
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <vgu2rb$16rop$2@dont-email.me>
References: <vgtt3v$169sh$1@dont-email.me> <vgturv$16fp9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 12 Nov 2024 00:09:32 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e65e33b4f0c03cfa18bf3263781018f9";
	logging-data="1273625"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19GrsMFoZIJG7S6NA3+t4gtrVeqEs3WzIc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8x/WJmHk7USXDIyGeGTy3HyYmF8=
Content-Language: en-US
In-Reply-To: <vgturv$16fp9$1@dont-email.me>
Bytes: 2192

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