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.

-F Option<br />

Syntax<br />

-Fconfig_file | -Fconfig_file:stanza | -F:stanza<br />

Specifies an alternative configuration file, which stanza to use within the<br />

configuration file, or both.<br />

The configuration file specifies different kinds of defaults, such as options <strong>for</strong><br />

particular compilation steps and the locations of various files that the compiler<br />

requires. A default configuration file (/etc/xlf.cfg) is supplied at installation time.<br />

The default stanza depends on the name of the command used to invoke the<br />

compiler (xlf90, xlf90_r, xlf90_r7, xlf95, xlf95_r, xlf95_r7, xlf, xlf_r, xlf_r7, f77, or<br />

<strong>for</strong>t77).<br />

A simple way to customize the way the compiler works, as an alternative to<br />

writing complicated compilation scripts, is to add new stanzas to /etc/xlf.cfg,<br />

giving each stanza a different name and a different set of default compiler options.<br />

You may find the single, centralized file easier to maintain than many scattered<br />

compilation scripts and makefiles.<br />

By running the compiler with an appropriate -F option, you can select the set of<br />

options that you want. You might have one set <strong>for</strong> full optimization, another set<br />

<strong>for</strong> full error checking, and so on.<br />

Restrictions<br />

Because the default configuration file is replaced each time a new compiler release<br />

is installed, make sure to save a copy of any new stanzas or compiler options that<br />

you add.<br />

Examples<br />

# Use stanza debug in default xlf.cfg.<br />

xlf95 -F:debug t.f<br />

# Use stanza xlf95 in /home/fred/xlf.cfg.<br />

xlf95 -F/home/fred/xlf.cfg t.f<br />

# Use stanza myxlf in /home/fred/xlf.cfg.<br />

xlf95 -F/home/fred/xlf.cfg:myxlf t.f<br />

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

“Customizing the Configuration File” on page 15 explains the contents of a<br />

configuration file and tells how to select different stanzas in the file without using<br />

the -F option.<br />

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

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

Saved successfully!

Ooh no, something went wrong!