Purpose
Enables 32-bit compilation mode (or, more
briefly, 32-bit mode) support in a 64-bit environment.
Syntax
>>- -q--32-----------------------------------------------------><
Defaults
-q32 is
the default, if you have not specified either -q32 or -q64 and
if you have not set the OBJECT_MODE environment
variable. For a description of the OBJECT_MODE environment
variable, see Default bit mode.
Usage
- The default integer and default real size are 4 bytes in 32-bit
mode.
- The default integer pointer size is 4 bytes in 32-bit mode.
- 32-bit object modules are created when targeting 32-bit mode.
- -q64 will override -q32.
- All settings for -qarch are compatible
with -q32. If you specify -q32,
the default -qarch suboption
is ppc,
and the default -qtune suboption for -q32 is balanced.
- The LOC intrinsic returns an INTEGER(4) value.
Examples
- Using 32-bit compilation mode and targetting a generic PowerPC® architecture:
-qarch=ppc -q32
- Now keep the same compilation mode, but change the target to POWER5:
-qarch=ppc -q32 -qarch=pwr5
Notice
that the last setting for -qarch wins.
- Now keep the same target, but change the compilation mode to 64-bit:
-qarch=ppc -q32 -qarch=pwr5 -q64
Notice
that specifying -q64 overrides the earlier
instance of -q32.