-q32, -q64

Description

Selects either 32-bit or 64-bit compiler mode.

Syntax

Read syntax diagramSkip visual syntax diagram        .-32-.
>>- -q--+-64-+-------------------------------------------------><
 

Notes

If this option is not explicitly specified on the command line, the compiler will default to 32-bit output mode.

If the compiler is invoked in 64-bit mode, the __64BIT__ preprocessor macro is defined.

Use -q32 and -q64 options, along with the -qarch and -qtune compiler options, to optimize the output of the compiler to the architecture on which that output will be used.

Example

To specify that the executable program testing compiled from myprogram.c is to run on a computer with a 32-bit PowerPC architecture, enter:

xlc -o testing myprogram.c -q32 -qarch=ppc

Important!

Related information