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.

-qstrictieeemod Option<br />

Syntax<br />

-qstrictieeemod | -qnostrictieeemod<br />

STRICTIEEEMOD | NOSTRICTIEEEMOD<br />

Specifies whether the compiler will adhere to the draft <strong>Fortran</strong> 2003 IEEE<br />

arithmetic rules <strong>for</strong> the ieee_arithmetic and ieee_exceptions intrinsic modules.<br />

When you specify -qstrictieeemod, the compiler adheres to the following rules:<br />

v<br />

v<br />

v<br />

v<br />

If there is an exception flag set on entry into a procedure that uses the IEEE<br />

intrinsic modules, the flag is set on exit. If a flag is clear on entry into a<br />

procedure that uses the IEEE intrinsic modules, the flag can be set on exit.<br />

If there is an exception flag set on entry into a procedure that uses the IEEE<br />

intrinsic modules, the flag clears on entry into the procedure and resets when<br />

returning from the procedure.<br />

When returning from a procedure that uses the IEEE intrinsic modules, the<br />

settings <strong>for</strong> halting mode and rounding mode return to the values they had at<br />

procedure entry.<br />

Calls to procedures that do not use the ieee_arithmetic or ieee_exceptions<br />

intrinsic modules from procedures that do use these modules, will not change<br />

the floating-point status except by setting exception flags.<br />

Since the above rules can impact per<strong>for</strong>mance, specifying –qnostrictieeemod will<br />

relax the rules on saving and restoring floating-point status. This prevents any<br />

associated impact on per<strong>for</strong>mance.<br />

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