Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
E77790.pdf
Скачиваний:
2
Добавлен:
16.05.2024
Размер:
1.29 Mб
Скачать

4.8 Directives

4.8Directives

A compiler directive directs the compiler to do some special action. Directives are also called pragmas.

A compiler directive is inserted into the source program as one or more lines of text. Each line looks like a comment, but has additional characters that identify it as more than a comment for this compiler. For most other compilers, it is treated as a comment, so there is some code portability.

A complete summary of Fortran directives appears in Appendix C, “Fortran Directives Summary”.

4.8.1Form of Special f95 Directive Lines

f95 recognizes its own special directives in addition to those described in “1.7 Command-Line Help” on page 20. These have the following syntax:

!DIR$ d1, d2, …

4.8.1.1Fixed-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.2Free-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$.

190 Oracle Developer Studio 12.6: Fortran User's Guide • July 2017

Соседние файлы в предмете Информационные и сетевые технологии