Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

debug and release mod files

martymike
Novice
559 Views
is it necessary to keep separate release and debug versions of the *.mod files?
0 Kudos
3 Replies
Jugoslav_Dujic
Valued Contributor II
559 Views
No, it's not, although it's usually a practical thing to do; depends on what you have in mind.

Actually, it's quite likely that debug and release versions of the *mod files are bit-by-bit identical (except the short header containing the timestamp), provided that general settings are the same for both configuratons. As far as I can tell, VF's .mod files contain only information regarding variable declarations, initializers and parameter values, and routine interfaces.

There is a potential use of .mod files to also contain code for module procedures suitable for "inlining", but I'm not sure if VF utilizes it (Steve?) -- even if it does, it would be pretty wise to ensure that the mechanism doesn't break if a release .mod file is used in a debug configuration of another project.
0 Kudos
Steven_L_Intel1
Employee
559 Views

There's no code in a .mod - just declarations. I'm not aware of any differences in .mod files based on debug settings.

0 Kudos
martymike
Novice
559 Views
Thanks. We've always kept them separate, just to be careful. But for libraries that are shared by several products it would be simpler to not have to worry about that. That's what I'm going to do, now. Thanks, again.
0 Kudos
Reply