-q32, -q64

Pragma equivalent

None.

Purpose

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

Use the -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.

Syntax

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

Defaults

-q32

Usage

The -q32 and -q64 options override the compiler mode set by the value of the OBJECT_MODE environment variable, if it exists.

Predefined macros

When -q64 is in effect, __64BIT__ is defined to 1; otherwise, it is undefined.

Examples

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

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


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us