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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

-qci Option<br />

Syntax<br />

-qci=numbers<br />

CI(numbers)<br />

Specifies the identification numbers (from 1 to 255) of the INCLUDE lines to<br />

process. If an INCLUDE line has a number at the end, the file is only included if<br />

you specify that number in a -qci option. The set of identification numbers that is<br />

recognized is the union of all identification numbers that are specified on all<br />

occurrences of the -qci option.<br />

This option allows a kind of conditional compilation because you can put code that<br />

is only sometimes needed (such as debugging WRITE statements, additional<br />

error-checking code, or <strong>XL</strong>F-specific code) into separate files and decide <strong>for</strong> each<br />

compilation whether to process them.<br />

Examples<br />

REAL X /1.0/<br />

INCLUDE ’print_all_variables.f’ 1<br />

X = 2.5<br />

INCLUDE ’print_all_variables.f’ 1<br />

INCLUDE ’test_value_of_x.f’ 2<br />

END<br />

In this example, compiling without the -qci option simply declares X and assigns it<br />

a value. Compiling with -qci=1 includes two instances of an include file, and<br />

compiling with -qci=1:2 includes both include files.<br />

Restrictions<br />

Because the optional number in INCLUDE lines is not a widespread <strong>Fortran</strong><br />

feature, using it may restrict the portability of a program.<br />

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

See the section on the INCLUDE directive in the <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong><br />

<strong>AIX</strong> Language Reference.<br />

<strong>XL</strong> <strong>Fortran</strong> Compiler-Option Reference 141

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

Saved successfully!

Ooh no, something went wrong!