Oracle® Solaris Studio 12.4: Fortran User's Guide

Exit Print View

Updated: March 2015
 
 

4.8.1 Form of Special f95 Directive Lines

f95 recognizes its own special directives in addition to those described in Command-Line Help. These have the following syntax:

!DIR$ d1, d2, …

4.8.1.1 Fixed-Form Source

  • Put CDIR$ or !DIR$ in columns 1 through 5.

  • Directives are listed in columns 7 and beyond.

  • Columns beyond 72 are ignored.

  • An initial directive line has a blank in column 6.

  • A continuation directive line has a nonblank in column 6.

4.8.1.2 Free-Form Source

  • Put !DIR$ followed by a space anywhere in the line.

    The !DIR$ characters are the first nonblank characters in the line (actually, non-whitespace).

  • Directives are listed after the space.

  • An initial directive line has a blank, tab, or newline in the position immediately after the !DIR$.

  • A continuation directive line has a character other than a blank, tab, or newline in the position immediately after the !DIR$.

Thus, !DIR$ in columns 1 through 5 works for both free-form source and fixed-form source.