Specifying compiler options for architecture-specific, 32-bit or 64-bit compilation

You can use the -q32, -q64, -qarch, and -qtune compiler options to optimize the output of the compiler to suit:

Generally speaking, the options do the following:

The compiler evaluates compiler options in the following order, with the last allowable one found determining the compiler mode:

  1. Internal default (32-bit mode)
  2. OBJECT_MODE environment variable setting
  3. Configuration file settings
  4. Command line compiler options (-q32, -q64, -qarch, -qtune)
  5. Source file statements (#pragma options tune=suboption)

The compilation mode actually used by the compiler depends on a combination of the settings of the -q32, -q64, -qarch and -qtune compiler options, subject to the following conditions:

Allowable combinations of these options are found in -qtune.

The following list describes possible option conflicts and compiler resolution of these conflicts:

Related information