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

 

 

3.4 Options Reference

 

 

 

 

 

 

 

keyword

meaning

 

 

 

 

actual

The compiler treats actual subprogram arguments as if they were global variables.

 

 

Passing an argument to a subprogram might result in aliasing through Cray pointers.

 

 

 

 

no%actual

(Default) Passing an argument does not result in further aliasing.

 

 

 

 

overindex

■ A reference to an element in a COMMON block might refer to any element in a

 

 

COMMON block or equivalence group.

 

 

■ Passing any element of a COMMON block or equivalence group as an actual

 

 

argument to a subprogram gives access to any element of that COMMON block or

 

 

equivalence group to the called subprogram.

 

 

■ Variables of a sequence derived type are treated as if they were COMMON blocks,

 

 

and elements of such a variable might alias other elements of that variable.

 

 

■ Individual array bounds may be violated, but except as noted above, the referenced

 

 

array element is assumed to stay within the array. Array syntax, WHERE, and FORALL

 

 

statements are not considered for overindexing. If overindexing occurs in these

 

 

constructs, they should be rewritten as DO loops.

 

 

 

 

no%overindex

(Default) Array bounds are not violated. Array references do not reference other

 

 

variables.

 

 

 

 

ftnpointer

Calls to external functions might cause Fortran pointers to point at target variables of

 

 

any type, kind, or rank.

 

 

 

 

no%ftnpointer

(Default) Fortran pointers follow the rules of the standard.

 

 

 

Specifying -xalias without a list gives the best performance for most programs that do not violate Fortran aliasing rules, and corresponds to:

no%dummy,no%craypointer,no%actual,no%overindex,no%ftnpointer

To be effective, -xalias should be used when compiling with optimization levels -xO3 and higher.

The compiler default, with no -xalias flag specified, assumes that the program conforms to the Fortran standard except for Cray pointers:

no%dummy,craypointer,no%actual,no%overindex,no%ftnpointer

3.4.112 –xannotate[={yes|no}]

Create binaries that can later be used by the optimization and observability tools binopt(1), code-analyzer(1), discover(1), collect(1), and uncover(1).

The default on Oracle Solaris is -xannotate=yes. The default on Oracle Linux is - xannotate=no. Specifying -xannotate without a value is equivalent to -xannotate=yes.

Chapter 3 • Fortran Compiler Options

105

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