On Thursday, February 9, 2012 1:54:23 PM UTC-8, George Cornelius wrote:
> Phillip Helbig---undress to reply wrote:
> > Yes, quality lingers on in some corners. Steve Lionel told the
> > interesting story of the "DEC" used as part of an identifier for
> > preprocessor directives for high-performance Fortran. (To a non-HPF
> > compiler, they are just comments and ignored, but an HPF compiler will
> > do something with them.) After Compaq bought DEC, someone suggested
> > they should get a new name. Steve replied that it stood for
> > Directive-Enhanced Compilation (actually a pretty good description of
> > the functionality) and they stayed in. :-)
>
> I don't know what a Fortran preprocessor directive is, but
> historically we have had the /D_LINES option - see below.
[...]
Preprocessor directives are comment lines in a particular
format that the compiler recognizes and processes.
Unlike D_lines, which are treated either (a) as normal
comment lines without the qualifier, or (b) as source
code to be compiled if the qualifier is present, the
directives give instructions to the compiler that
change it's behaviour. Similar but not identical to
C preprocessor directives.
The Directive-Enhanced Compilation lines (brilliant
of Steve Lionel to come up with that post-hoc
meaning :-) is:
!DEC$ ...stuff...
Since VMS Fortran long supported the extension of
using the exclamation point as a valid comment character,
and indeed Fortran 90 standardized that usage, a compiler
that doesn't recognize the directives will simply skip
over them as normal comment lines. The VMS and Intel
Fortran compilers (as well as the earlier Digital & Compaq
Visual Fortran on Windows) do recognize these, although
there may be others as well.
I can't comment on how they're actually used since
I've never needed them.
-Ken