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 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 />

SIGN(A,B) now returns -|A| when B=-0.0.<br />

Prior to <strong>XL</strong> <strong>Fortran</strong> Version 7.1, it returned<br />

|A|.<br />

A minus sign is printed <strong>for</strong> a negative zero<br />

in <strong>for</strong>matted output. A minus sign is<br />

printed <strong>for</strong> negative values that have an<br />

outputted <strong>for</strong>m of zero (that is, in the case<br />

where trailing non-zero digits are truncated<br />

from the output so that the resulting output<br />

looks like zero). Prior to <strong>XL</strong> <strong>Fortran</strong> Version<br />

7.1, minus signs were not printed in these<br />

situations.<br />

This behavior con<strong>for</strong>ms with<br />

the <strong>Fortran</strong> 95 standard and<br />

is consistent with the IEEE<br />

standard <strong>for</strong> binary<br />

floating-point arithmetic. It<br />

occurs because the<br />

-qxlf90=signedzero option is<br />

turned on. Turn it off, or<br />

specify a command that does<br />

not use this option by<br />

default.<br />

This behavior con<strong>for</strong>ms with<br />

the <strong>Fortran</strong> 95 standard and<br />

occurs because the<br />

-qxlf90=signedzero option is<br />

turned on. Turn it off, or<br />

specify a command that does<br />

not use this option by<br />

default.<br />

U<br />

U<br />

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

v “Compiling <strong>for</strong> Specific Architectures” on page 39<br />

v “Setting Run-Time Options” on page 51<br />

v “-qalias Option” on page 122<br />

v “-qextern Option” on page 157<br />

v “-qposition Option” on page 219<br />

v “-qsave Option” on page 228<br />

v “-qxlf77 Option” on page 261<br />

Running Two Levels of <strong>XL</strong> <strong>Fortran</strong><br />

It is possible <strong>for</strong> two different levels of the <strong>XL</strong> <strong>Fortran</strong> compiler to coexist on one<br />

system. This allows you to invoke one level by default and to invoke the other one<br />

whenever you explicitly choose to.<br />

To do this, consult the <strong>XL</strong> <strong>Fortran</strong> <strong>Enterprise</strong> <strong>Edition</strong> <strong>for</strong> <strong>AIX</strong> Installation <strong>Guide</strong> <strong>for</strong><br />

details.<br />

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