You can use IBM VisualAge C++ compiler options to optimize compiler output for use on specific processor architectures. You can also instruct the compiler to compile in either 32- or 64-bit mode.
The compiler evaluates compiler options in the following order, with the last allowable one found determining the compiler mode:
OBJECT_MODE Setting |
User-selected compilation-mode behavior, unless overridden by configuration file or command-line options |
---|---|
not set | 32-bit compiler mode. |
32 | 32-bit compiler mode. |
64 | 64-bit compiler mode. |
32_64 | Fatal error and stop with following message,1501-054 OBJECT_MODE=32_64 is not a valid setting for the compiler unless an explicit configuration file or command-line compiler-mode setting exists. |
any other | Fatal error and stop with following message, 1501-055 OBJECT_MODE setting is not recognized and is not a valid setting for the compiler unless an explicit configuration file or command-line compiler-mode setting exists. |
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 the Acceptable Compiler Mode and Processor Architecture Combinations table.
Possible option conflicts and compiler resolution of these conflicts are described below:
Resolution: -q32 or -q64 setting overrides -qarch option; compiler issues a warning message, sets -qarch option to com, and sets -qtune option to the -qarch setting's default -qtune value.
Resolution: -q32 or -q64 setting overrides -qtune option; compiler issues a warning message, and sets -qtune option to the -qarch setting's default -qtune value.
Resolution: Compiler issues a warning message, and sets -qtune to the -qarch setting's default -qtune value.
Resolution: Compiler issues a warning message, sets -qarch to com, and sets -qtune to the -qarch setting's default -qtune setting. The compiler mode (32- or 64-bit) is determined by the OBJECT_MODE environment variable or -q32/-q64 compiler settings.
Invoke the Batch Compiler
Set Up the Batch Compilation Environment
Specify Compiler Options in Your Source Program
Specify Batch Compiler Options in a Configuration File
Acceptable Compiler Mode and Processor Architecture
Combinations
Resolving Conflicting Compiler Options
List of Batch Compiler Options and Their Defaults