Acceptable Compiler Mode and Processor Architecture Combinations

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:

Acceptable combinations of -q32, -q64, -qarch, and -qtune compiler options are shown in the table below. If you specify incompatible combinations of these options, the compiler will assume its own option selections, as described in Specifying Compiler Options for Architecture-Specific, 32- or 64-bit Compilation.

-qarch option Predefined Macro -qtune option Default -qtune suboption Compiler mode
-q32
-q64
com
_ARCH_COM
DEFAULT 
(not selectable),
pwr
pwr2
pwr2s
pwrx
p2sc
601
602
603
604
403
rs64a
rs64b
pwr2
yes
yes
pwr
_ARCH_PWR
pwr
pwr2
pwr2s
pwrx
p2sc
601
pwr2
yes
no
pwr2
pwrx
_ARCH_PWR
_ARCH_PWR2
pwr2
pwr2s
pwrx
p2sc
pwr2
yes
no
ppc
_ARCH_PPC
601
602
603
604
403
rs64a
rs64b
604
(32-bit mode)
630
(64-bit mode)
yes
yes
ppcgr
_ARCH_PPC
_ARCH_PPCGR
603
604
604
yes
yes
pwr2s
_ARCH_PWR
_ARCH_PWR2
_ARCH_PWR2S
pwr2s
pwr2s
yes
no
p2sc
_ARCH_PWR
_ARCH_PWR2
_ARCH_P2SC
p2sc
p2sc
yes
no
601
_ARCH_601
601
601
yes
no
602
_ARCH_PPC
_ARCH_602
602
602
yes
no
603
_ARCH_PPC
_ARCH_PPCGR
_ARCH_603
603
603
yes
no
604
_ARCH_PPC
_ARCH_PPCGR
_ARCH_604
604
604
yes
no
403
_ARCH_PPC
_ARCH_403
403
403
yes
no
rs64a 
(RS/6000 Models
S70, S71)
_ARCH_PPC
_ARCH_RS64A
rs64a
rs64a
yes
yes
Note: Use -qarch=ppcgr -q32 to enable graphics instructions on the RS64A processor.
rs64b 
(RS/6000 Models
S70, S71)
_ARCH_PPC
_ARCH_RS64B
rs64b
rs64b
yes
yes
Note: Use -qarch=ppcgr -q32 to enable graphics instructions on the RS64B processor.


Specifying Compiler Options for Architecture-Specific, 32- or 64-bit Compilation