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.

Table 3. Options That Control Input to the Compiler (continued)<br />

Command-Line<br />

Option<br />

-qsuffix={suboptions}<br />

@PROCESS<br />

Directive Description See Page<br />

Specifies the source-file suffix on<br />

the command line.<br />

244<br />

Options That Specify the Locations of Output Files<br />

The following options specify names or directories where the compile stores output<br />

files.<br />

In the table, an * indicates that the option is processed by the ld command, rather<br />

than by the <strong>XL</strong> <strong>Fortran</strong> compiler; you can find more in<strong>for</strong>mation about these<br />

options in the <strong>AIX</strong> in<strong>for</strong>mation <strong>for</strong> the ld command.<br />

Related In<strong>for</strong>mation: See “<strong>XL</strong> <strong>Fortran</strong> Output Files” on page 34 and “Options<br />

That Control Input to the Compiler” on page 68.<br />

Table 4. Options That Specify the Locations of Output Files<br />

Command-Line<br />

Option<br />

@PROCESS<br />

Directive<br />

Description<br />

-d Leaves preprocessed source files produced<br />

by cpp, instead of deleting them.<br />

Default: Temporary files produced by cpp<br />

are deleted.<br />

-o name* Specifies a name <strong>for</strong> the output object,<br />

executable, or assembler source file.<br />

Default: -o a.out<br />

-qmoddir=directory<br />

Specifies the location <strong>for</strong> any module<br />

(.mod) files that the compiler writes.<br />

Default: .mod files are placed in the<br />

current directory.<br />

See<br />

Page<br />

106<br />

116<br />

203<br />

Options <strong>for</strong> Per<strong>for</strong>mance Optimization<br />

The following options can help you to speed up the execution of your <strong>XL</strong> <strong>Fortran</strong><br />

programs or to find areas of poor per<strong>for</strong>mance that can then be tuned. The most<br />

important such option is -O. In general, the other per<strong>for</strong>mance-related options<br />

work much better in combination with -O; some have no effect at all without -O.<br />

Related In<strong>for</strong>mation: See “Optimizing <strong>XL</strong> <strong>Fortran</strong> Programs” on page 305.<br />

Some of the options in “Options <strong>for</strong> Floating-Point Processing” on page 86 can also<br />

improve per<strong>for</strong>mance, but you must use them with care to avoid error conditions<br />

and incorrect results.<br />

Table 5. Options <strong>for</strong> Per<strong>for</strong>mance Optimization<br />

Command-Line<br />

Option<br />

-O[level]<br />

-qoptimize[=level]<br />

-qnooptimize<br />

@PROCESS<br />

Directive<br />

OPTimize[(level)]<br />

NOOPTimize<br />

Description<br />

Specifies whether code is optimized during<br />

compilation and, if so, at which level (0, 2,<br />

3, 4, or 5).<br />

Default: -qnooptimize<br />

See<br />

Page<br />

114<br />

70 <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!