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

MODULE File Size

Intel_C_Intel
Employee
884 Views
What controls the size of a module .MOD file? I have a 957 line file which is probably 40-50% comments and it produces a 5.35MB .MOD file.
I assume it must be the includes, but it still seems pretty large...
0 Kudos
7 Replies
Steven_L_Intel1
Employee
884 Views
There are no comments in a .mod file. It's symbol table information only. If you have very large PARAMETER constants (arrays or character strings defined), those are represented in the .mod file.

Anything in the include files gets compiled as if it was in the original source. So what's the total content of all the files?
0 Kudos
Intel_C_Intel
Employee
884 Views
All my includes amount to less than 400KB...does the module expand arrays or anything like that?
0 Kudos
Steven_L_Intel1
Employee
884 Views
If they're PARAMETER arrays and are initialized, yes. If they're variables, no. Please submit the sources to Intel Premier Support so that we can look at it - ask that it be assigned to Steve Lionel.
0 Kudos
Intel_C_Intel
Employee
884 Views
As usual I forgot my details...this is CVF6.6C on XP SP2. Do you still want to look at this, Steve? It isn't bothering me over-much...the MOD file jsut seemed curiously large. I might look into compiler options in the mean time...
0 Kudos
Steven_L_Intel1
Employee
884 Views
I am still interested - if you can send me a zip file to steve.lionel at intel.com I'd appreciate it. The module processing of CVF 6.6C is fundamentally similar to that of IVF, though we've done a lot of tweaking since then. It used to be, prior to CVF 6.6, I think, that .mod files included all the declarations of other modules it USEd, but that's no longer the case.
0 Kudos
Intel_C_Intel
Employee
884 Views
I've sent you an e-mail Steve.
0 Kudos
Intel_C_Intel
Employee
884 Views

I found the 'problem'. In all the CONTAINed functions I included my main common block definition file. If I move that include to the top of the module and remove it from each function, the .MOD file size drops to a little under 500kb.

Message Edited by judd on 07-22-2005 10:42 AM

0 Kudos
Reply