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.

64-Bit Thread Support<br />

On <strong>AIX</strong> Version 5.1 with the POSIX 1003.1-1996 standard pthreads API, <strong>XL</strong> <strong>Fortran</strong><br />

, beginning with Version 5.1.1, supports 64-bit thread programming. You can<br />

specify the -q64 compiler option with the xlf_r, xlf_r7, xlf90_r, xlf90_r7, xlf95_r,<br />

and xlf95_r7 commands. For example, you can specify the following command to<br />

compile and then link a program in 64-bit object mode:<br />

xlf90_r -q64 -qsmp test.f<br />

<strong>AIX</strong> Version 5.1 supports the POSIX 1003.1-1996 standard interface in both 32-bit<br />

and 64-bit object mode, but supports the Draft 7 interface in 32-bit object mode<br />

only. That is, the libpthreads.a library has a 32-bit and a 64-bit part, while the<br />

libpthreads_compat.a and libxlfpthrds_compat.a libraries have 32-bit parts only.<br />

Compiler Options <strong>for</strong> the 64-Bit Environment<br />

The compiler options that are described in this section enable you to do the<br />

following:<br />

v Develop applications <strong>for</strong> the 64-bit environment<br />

v Help migrate source code from the 32-bit environment to a 64-bit environment<br />

Some of these options already exist in the 32-bit environment but have new<br />

settings particular to the 64-bit architecture. This section only covers the new<br />

settings <strong>for</strong> these cases. The options that are grouped here are primarily <strong>for</strong><br />

developers who are targetting 64-bit plat<strong>for</strong>ms.<br />

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