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

meaning !DEC$

rmoortgat
New Contributor I
866 Views

Hello,

 

where can I find more info about the meaning of !DEC$ like in !DEC$ ATTRIBUTES REFERENCE :: num ?

Doesn't seem to be part of the Fortran standard. In fact conforming to the standard this should simply be a comment.

Something to do with DEC Fortran?

Roger

0 Kudos
1 Solution
Steve_Lionel
Honored Contributor III
863 Views

Directive Enhanced Compilation - at least that's what Stan Whitlock told Intel management when they wanted us to remove !DEC$ as a directive prefix from the compiler (instantly invalidating thousands of programs using that.) Yes, it really did stand for Digital Equipment Corporation once upon a time. Nowadays, !DIR$ is the preferred spelling, one that is supported by many compilers. Directives are not standard, and each compiler has its own set. (Gfortran uses !GCC$ for example, but also supports !DIR$.)

Directives are "statements with funny spelling" - they're treated as comments if the compiler doesn't recognize them. Directives have a long history in Fortran-world, but were never part of the standard. OpenMP has its own directive prefix, !$OMP.

Directive Enhanced Compilation (intel.com)

Today I would suggest using the standard C interoperability features instead of directives, if you can.

View solution in original post

2 Replies
Steve_Lionel
Honored Contributor III
864 Views

Directive Enhanced Compilation - at least that's what Stan Whitlock told Intel management when they wanted us to remove !DEC$ as a directive prefix from the compiler (instantly invalidating thousands of programs using that.) Yes, it really did stand for Digital Equipment Corporation once upon a time. Nowadays, !DIR$ is the preferred spelling, one that is supported by many compilers. Directives are not standard, and each compiler has its own set. (Gfortran uses !GCC$ for example, but also supports !DIR$.)

Directives are "statements with funny spelling" - they're treated as comments if the compiler doesn't recognize them. Directives have a long history in Fortran-world, but were never part of the standard. OpenMP has its own directive prefix, !$OMP.

Directive Enhanced Compilation (intel.com)

Today I would suggest using the standard C interoperability features instead of directives, if you can.

rmoortgat
New Contributor I
861 Views

Thank you!

0 Kudos
Reply