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:

All PowerPC machines share a common set of instructions, but may also include additional instructions unique to a given processor or processor family.

The table below shows some selected processors, and the various features they may or may not support:


Processor graphics support sqrt support 64-bit support
rs64b yes yes yes
rs64c yes yes yes
pwr3 yes yes yes
pwr4 yes yes yes
pwr5 yes yes yes

If you want to generate code that will run across a variety of processors, use the following guidelines to select the appropriate -qarch and/or -qtune compiler options. Code compiled with:

If you want to generate code optimized specifically for a particular processor, acceptable combinations of -q32, -q64, -qarch, and -qtune compiler options are shown in the following table.

Related references


Acceptable -qarch /-qtune combinations
-qarch option Predefined macros Default -qtune setting Available -qtune settings
ppc64v _ARCH_PPCV ppc970 auto
ppc970

Related references

IBM Copyright 2003