- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page