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.

s64c<br />

pwr3<br />

pwr4<br />

pwr5<br />

You can run the executable file on any RS64III machine.<br />

You can run the executable file on any POWER3, POWER4, POWER5, or<br />

PowerPC 970 hardware plat<strong>for</strong>m. In previous releases, the pwr3 setting<br />

was used to target the POWER3 and POWER4 group of processors. To<br />

have your compilation target a more general processor group, use the<br />

ppc64grsq setting, which includes the POWER3, POWER4, POWER5, or<br />

PowerPC 970 group of processors. Because executable files <strong>for</strong> these<br />

plat<strong>for</strong>ms may contain instructions that are not available on POWER,<br />

POWER2, or other PowerPC systems, they may be incompatible with those<br />

systems.<br />

You can run the executable file on any POWER4, POWER5, or PowerPC<br />

970 hardware plat<strong>for</strong>m. Use of -qarch=pwr4 will result in binaries that will<br />

not run on most previous PowerPC implementations.<br />

You can run the executable file on any POWER5 hardware plat<strong>for</strong>m.<br />

ppc970<br />

You can run the executable file on any PowerPC 970 hardware plat<strong>for</strong>m.<br />

Note: The -qarch setting determines the allowed choices and defaults <strong>for</strong> the<br />

-qtune setting.You can use -qarch and -qtune to target your program to<br />

particular machines.<br />

If you intend your program to run only on a particular architecture, you can use<br />

the -qarch option to instruct the compiler to generate code specific to that<br />

architecture. This allows the compiler to take advantage of machine-specific<br />

instructions that can improve per<strong>for</strong>mance. The -qarch option provides arguments<br />

<strong>for</strong> you to specify certain chip models; <strong>for</strong> example, you can specify -qarch=604 to<br />

indicate that your program will be executed on PowerPC 604 hardware plat<strong>for</strong>ms.<br />

For a given application program, make sure that you specify the same -qarch<br />

setting when you compile each of its source files. Although the linker and loader<br />

may detect object files that are compiled with incompatible -qarch settings, you<br />

should not rely on it.<br />

You can further enhance the per<strong>for</strong>mance of programs intended <strong>for</strong> specific<br />

machines by using other perfomance-related options like the -qcache and -qhot<br />

options.<br />

Use these guidelines to help you decide whether to use this option:<br />

v<br />

v<br />

v<br />

If your primary concern is to make a program widely distributable, keep the<br />

default (com). If your program is likely to be run on all types of processors<br />

equally often, do not specify any -qarch or -qtune options. The default supports<br />

only the common subset of instructions of all processors.<br />

If you want your program to run on more than one architecture, but to be tuned<br />

to a particular architecture, use a combination of the -qarch and -qtune options.<br />

Make sure that your -qarch setting covers all the processor types you intend<br />

your program to run on. If you run such a program on an unsupported<br />

processor, your program may fail at execution time.<br />

If the program will only be used on a single machine or can be recompiled<br />

be<strong>for</strong>e being used on a different machine, specify the applicable -qarch setting.<br />

Doing so might improve per<strong>for</strong>mance and is unlikely to increase compile time. If<br />

you specify the p2sc, pwr2, pwr2s, rs64a, rs64b, rs64c, 601, 603, 604, pwr3, pwr4,<br />

pwr5, or ppc970 suboption, you do not need to specify a separate -qtune option.<br />

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

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

Saved successfully!

Ooh no, something went wrong!