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.

Default Bit Mode<br />

The <strong>AIX</strong> operating system provides support <strong>for</strong> the OBJECT_MODE environment<br />

variable to enable the user to obtain a 64-bit development environment. <strong>AIX</strong> tools<br />

use the setting of OBJECT_MODE to determine the type of object to be used or<br />

created. The OBJECT_MODE environment variable has three recognized settings:<br />

OBJECT_MODE=32<br />

Works with 32-bit objects<br />

OBJECT_MODE=64<br />

Works with 64-bit objects<br />

OBJECT_MODE=32_64<br />

Works with either 32-bit or 64-bit objects<br />

The <strong>XL</strong> <strong>Fortran</strong> compiler determines the default bit mode through the setting of<br />

the OBJECT_MODE environment variable at the time of invocation. The following<br />

table shows the default bit mode and options that are set <strong>for</strong> each setting of the<br />

OBJECT_MODE environment variable:<br />

Table 16. Default bit mode determined by the setting of OBJECT_MODE<br />

OBJECT_MODE Setting Default Bit Mode Default Option Set<br />

unset 32-bit -q32<br />

32 32-bit -q32<br />

64 64-bit -q64<br />

32_64 Not permitted n/a<br />

Specification of the following options on the command line or in the configuration<br />

file overrides the default option set:<br />

v -q64<br />

v -q32<br />

Important Note<br />

Using OBJECT_MODE to determine the default bit mode can have serious<br />

implications if you are not aware of the setting of OBJECT_MODE at the<br />

time of invocation. For example, you may not be aware that OBJECT_MODE<br />

has been set to 64, and you may unexpectedly obtain 64-bit object files.<br />

We strongly urge you to be aware of the setting of OBJECT_MODE at all<br />

times and to set OBJECT_MODE yourself to ensure that the compiler is<br />

invoked <strong>for</strong> the correct bit mode. Instead, you can always use the -q32 or<br />

-q64 option to specify the bit mode.<br />

Module Support<br />

64-bit support is provided in the <strong>Fortran</strong> module files that are shipped with <strong>XL</strong><br />

<strong>Fortran</strong>. The 64-bit and 32-bit <strong>Fortran</strong> modules are shipped in the<br />

/usr/lpp/xlf/include directory.<br />

Using <strong>XL</strong> <strong>Fortran</strong> in a 64-Bit Environment 285

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

Saved successfully!

Ooh no, something went wrong!