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

Calling all MOD/LIB experts

rahzan
New Contributor I
1,146 Views
If I have a LIB file with a module in it. That is I have the lIB and the MOD files. Is there a way to document/list the variables, type def'ns, and/or the procedures in it?

If not the preocedure interfaces, only the list of names will do.

Tx,
Tim
0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,146 Views
Well, you can get a list of routines and some variables by dumping the symbol table of the .LIB: dumpbin -symbols from a Fortran Command Prompt window. Stuff like type declarations are in the .MOD file and not "dumpable", though you can open the .MOD in the binary editor and see the names in the string table. You're on your own there.

Steve
0 Kudos
rahzan
New Contributor I
1,146 Views
Thanks, that's just about all I needed.
2 things:

1. What binary editor were you thinking of?

2. At the risk of pushing my luck, is there an way to find out the rtype of the variables and/or the dummy argument types of the procedures?

Thanks again
Tim
0 Kudos
Jugoslav_Dujic
Valued Contributor II
1,146 Views
Hi Tim,

1) Have you tried opening a .mod file in Visual Studio? ;-)

2) There certainly is -- but you're probably on your own here, unless a good soul from Intel provides some details on the format. You could try doing some reverse-engineering yourself; try creating a simple module with one procedure, change its arguments, and watch for changes in the .mod file. A file compare program, like WinDiff (or a better one, if you find it on the net) could ease the task.

Jugoslav
0 Kudos
Reply