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

4.8 Directives

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

4.8.2FIXED and FREE Directives

These directives specify the source form of lines following the directive line.

4.8.2.1Scope

They apply to the rest of the file in which they appear, or until the next FREE or FIXED directive is encountered.

4.8.2.2Uses

They allow you to switch source forms within a source file.

They allow you to switch source forms for an INCLUDE file. You insert the directive at the start of the INCLUDE file. After the INCLUDE file has been processed, the source form reverts back to the form being used prior to processing the INCLUDE file.

4.8.2.3Restrictions

The FREE/FIXED directives:

Each must appear alone on a compiler directive line (not continued).

Each can appear anywhere in your source code. Other directives must appear within the program unit they affect.

Example: A FREE directive.

!DIR$ FREE

DO i = 1, n

a(i) = b(i) * c(i) END DO

4.8.3Parallelization Directives

A parallelization directive is a special comment that directs the compiler to attempt to parallelize a region of code. Both Sun and Cray style parallelization directives are now

Chapter 4 • Oracle Developer Studio Fortran Features and Extensions

191

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