Re: Do different compilers produce different .mod files?



<bonzaboy@xxxxxxxxxxx> wrote:

Does anyone
know if G95 .mod files should be compatible with other compilers? i
would have though so.

No. The .mod files are compiler-specific. Heck, it is even
compiler-specific whether there is such a thing as a .mod file. Putting
the necessary information in a .mod file is the most common
implementation scheme - enough so to have become a bit of a defacto
standard - but it is not the only scheme.

It has even happened that .mod files are incompatible between different
versions of the same compiler... just like it has happened that object
files have beeen simillarly incompatible. Vendors try to avoid such
version incompatibilities (because it makes life difficult for
customers, who then in turn make life difficult for the vendors), but it
has happened.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: Do different compilers produce different .mod files?
    ... know if G95 .mod files should be compatible with other compilers? ... Such incompatibilities usually imply to me less than ideal design of ... creating the file structure as a sequence of structures with no ... tagging/markup whatsoever. ...
    (comp.lang.fortran)
  • Re: compiling service ?
    ... instructions (and incompatibilities for several compilers). ... you can create a Windows-executable but in practice this ... Would it be legal to collect and provide Windows-executables for such ...
    (comp.lang.c)
  • Re: Fortran 2008 (was Re: Statement function host association)
    ... optimizing compiler for f77 code for their hardware. ... Other vendors were involved in this process too. ... compilers, but also there are numerous independent commercial ... 15 years or so of the new language features, array syntax still has ...
    (comp.lang.fortran)
  • Re: Problem with a linked list
    ... And vendors who make C compilers ... I am not convinced that "C as a language is clearly in decline". ...
    (comp.lang.c)
  • Re: Is FORTRAN a dying language? (not a troll)
    ... > file) had taken it upon himself to bait anyone who suggests free compilers ... all of the vendors I've encountered ... who choose open source solutions when and where available. ... masterplan of the Evil Commercial Vendorsand/or their employees. ...
    (comp.lang.fortran)