24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

-qdirective Option<br />

Syntax<br />

-qdirective[=directive_list] | -qnodirective[=directive_list]<br />

DIRECTIVE[(directive_list)] | NODIRECTIVE[(directive_list)]<br />

Specifies sequences of characters, known as trigger constants, that identify<br />

comment lines as compiler comment directives.<br />

Background In<strong>for</strong>mation<br />

A compiler comment directive is a line that is not a <strong>Fortran</strong> statement but is<br />

recognized and acted on by the compiler. To allow you maximum flexibility, any<br />

new directives that might be provided with the <strong>XL</strong> <strong>Fortran</strong> compiler in the future<br />

will be placed inside comment lines. This avoids portability problems if other<br />

compilers do not recognize the directives.<br />

Defaults<br />

The compiler recognizes the default trigger constant <strong>IBM</strong>*. Specification of -qsmp<br />

implies -qdirective=smp\$:\$omp:ibmp, and, by default, the trigger constants<br />

SMP$, $OMP, and <strong>IBM</strong>P are also turned on. If you specify -qsmp=omp, the<br />

compiler ignores all trigger constants that you have specified up to that point and<br />

recognizes only the $OMP trigger constant. Specification of -qthreaded implies<br />

-qdirective=ibmt, and, by default, the trigger constant <strong>IBM</strong>T is also turned on.<br />

Arguments<br />

The -qnodirective option with no directive_list turns off all previously specified<br />

directive identifiers; with a directive_list, it turns off only the selected identifiers.<br />

-qdirective with no directive_list turns on the default trigger constant <strong>IBM</strong>* if it has<br />

been turned off by a previous -qnodirective.<br />

Notes<br />

v Multiple -qdirective and -qnodirective options are additive; that is, you can turn<br />

directive identifiers on and off again multiple times.<br />

v One or more directive_lists can be applied to a particular file or compilation unit;<br />

any comment line beginning with one of the strings in the directive_list is then<br />

considered to be a compiler comment directive.<br />

v The trigger constants are not case-sensitive.<br />

v The characters (, ), ', ", :, =, comma, and blank cannot be part of a trigger<br />

constant.<br />

v To avoid wildcard expansion in trigger constants that you might use with these<br />

options, you can enclose them in single quotation marks on the command line.<br />

For example:<br />

xlf95 -qdirective=’dbg*’ -qnodirective=’<strong>IBM</strong>*’ directives.f<br />

v This option only affects <strong>Fortran</strong> directives that the <strong>XL</strong> <strong>Fortran</strong> compiler provides,<br />

not those that any preprocessors provide.<br />

148 <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> : User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!