modulefortranintel-fortran

why .mod files differ after every time i compile a .f file


I have a fortran file say abc.f.

This abc.f has some code inside and defines a module say abcd.

When i compile the file using ifort compiler it creates abcd.mod,and abc.o.

I save these .o and .mod file in another location and recompile the abc.f.

Now when i compare the new abcd.mod with old one it differs, but .o files are same.

What could be the possible reason?


Solution

  • Its a timestamp which is included in the mod files. http://en.wikipedia.org/wiki/Timestamp you can refer this for more on timestamp