Specifies the general processor architecture for which the code (instructions) should be generated.
.-ppc970-. >>- -q--arch--=--+-auto---+------------------------------------><
where available options specify broad families of processor architectures or subgroups of those architecture families, described below.
auto
- This is implied if -O4 or -O5 is set or implied.
- Produces object code containing instructions that will run on the hardware platform on which it is compiled.
ppc970
- Generates instructions specific to the PowerPC 970 architecture.
- Defines the _ARCH_PPC, _ARCH_PPCGR, _ARCH_PPC970 macros.
If you want maximum performance on a specific architecture and will not be using the program on other architectures, use the appropriate architecture option.
You can use -qarch=suboption with -qtune=suboption. -qarch=suboption specifies the architecture for which the instructions are to be generated, and -qtune=suboption specifies the target platform for which the code is optimized. If -qarch is specified without -qtune, the compiler uses the default tuning option for the specified architecture, and the listing shows: TUNE=DEFAULT.
To specify that the executable program testing compiled from myprogram.c is to run on a computer with a 32-bit PowerPCPPC970 architecture, enter:
xlc -o testing myprogram.c -q32 -qarch=ppc970
Related references