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.

Table 1. Potential Problems Migrating Programs to <strong>XL</strong> <strong>Fortran</strong> Version 9 (continued). The<br />

column on the right shows which problems you can avoid by using the xlf or f77 command.<br />

Potential Problem Solution or Workaround xlf Avoids?<br />

The .XOR. intrinsic is not recognized.<br />

Zero-sized objects are not allowed by the<br />

compiler.<br />

Existing programs or programs linked with<br />

older <strong>XL</strong> <strong>Fortran</strong> object files run more<br />

slowly or do not show expected<br />

per<strong>for</strong>mance improvements on new<br />

hardware.<br />

Programs compiled with -O3 or -qhot<br />

optimization behave differently from those<br />

unoptimized (different results, exceptions,<br />

or compilation messages).<br />

The option combination -O and -1 cannot<br />

be abbreviated -O1, to avoid<br />

misunderstandings. (There are -O2, -O3,<br />

-O4, and -O5 optimization levels, but there<br />

is no -O1.)<br />

Programs that use integer POINTERs<br />

produce incorrect results when optimized.<br />

Use the option<br />

-qxlf77=intxor.<br />

Use the xlf90 or xlf95<br />

command, or use the<br />

-qzerosize option with the<br />

xlf or f77 command.<br />

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

Recompile everything.<br />

Try adding the -qstrict<br />

option.<br />

Specify -O and -1 as separate<br />

options.<br />

Specify the option<br />

-qalias=intptr with the xlf90<br />

or xlf95 command, or use the<br />

xlf command.<br />

U<br />

U<br />

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