Re: Do different compilers produce different .mod files?
- From: Paul van Delst <Paul.vanDelst@xxxxxxxx>
- Date: Tue, 04 Mar 2008 15:56:58 -0500
GaryScott wrote:
On Mar 4, 1:21 pm, nos...@xxxxxxxxxxxxx (Richard Maine) wrote:<bonza...@xxxxxxxxxxx> wrote:Does anyoneNo. The .mod files are compiler-specific. Heck, it is even
know if G95 .mod files should be compatible with other compilers? i
would have though so.
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.
Such incompatibilities usually imply to me less than ideal design of
the .mod file structure. There's almost never good justification for
such incompatibilities. It is sometimes due to laziness, for example
creating the file structure as a sequence of structures with no
tagging/markup whatsoever. A tiny bit of thought, such as tagging
(e.g. escape sequences but a little more sophisticated), can avoid all
incompatibilities, and with minimal I/O performance impact (slightly
more difficult to process tho).
I would blame the marketing dept for a dearth of foresight before I would the compiler writers....
I mean, who hasn't prototyped code that has unintentionally escaped its enclosure? :o)
cheers,
paulv
.
- References:
- Do different compilers produce different .mod files?
- From: bonzaboy
- Re: Do different compilers produce different .mod files?
- From: Richard Maine
- Re: Do different compilers produce different .mod files?
- From: GaryScott
- Do different compilers produce different .mod files?
- Prev by Date: Re: Do different compilers produce different .mod files?
- Next by Date: Re: compiling- module - newbie question
- Previous by thread: Re: Do different compilers produce different .mod files?
- Next by thread: Re: Do different compilers produce different .mod files?
- Index(es):
Relevant Pages
|
|