IBM Books

User's Guide


Compiler Options for the 64-bit Environment

The compiler options that are described in this section enable you to do the following:

Some of these options already exist in the 32-bit environment, but have new settings particular to the 64-bit architecture. This section only covers the new settings for these cases. The options that are grouped here are primarily for developers who are targetting 64-bit platforms.

-q32 Option

Syntax:

-q32

Enables 32-bit compilation bit mode (or, more briefly, 32-bit mode) support in a 64-bit environment. The -q32 option indicates the compilation bit mode, and together with the -qarch option, determines the target machines that the 32-bit executable will run on.

Rules:

Examples

-q64 Option

Syntax:

-q64

Indicates the 64-bit compilation bit mode and, together with the -qarch option, determines the target machines on which the 64-bit executable will run. The -q64 option indicates that the object module will be created in 64-bit object format and that the 64-bit instruction set will be generated. Note that you may compile in a 32-bit environment to create 64-bit objects, but you must link them in a 64-bit environment with the -q64 option.

The -q64 option is also compatible with the C for AIX compiler and the tools provided on AIX 4.3.

Rules:

When you use -qautodbl=dblpad in 64-bit mode, you should use -qintsize=8 to promote INTEGER(4) to INTEGER(8) for 8 byte integer arithmetic.

Examples

-qarch=rs64a Option

Syntax:

-qarch=rs64a

Indicates that the target architecture for the executable to run on is the RS64I.

Rules:

Related Information:

For more information on the -qarch compiler option, see -qarch Option.

-qarch=rs64b Option

Syntax:

-qarch=rs64b

Indicates that the target architecture for the executable to run on is the RS64II.

Rules:

Related Information:

For more information on the -qarch compiler option, see -qarch Option.

-qtune=rs64a Option

Syntax:

-qtune=rs64a

Tune optimizations for the PowerPC RS64I processor.

You can specify the -qtune=rs64a option when you also specify any of the following options:

The -qtune=rs64a option is the default for the -qarch=rs64a option or the -q64 option.

Related Information:

For more information on the -qtune compiler option, see -qtune Option.

-qtune=rs64b Option

Syntax:

-qtune=rs64b

Tune optimizations for the PowerPC RS64II processor.

You can specify the -qtune=rs64b option when you also specify any of the following options:

The -qtune=rs64b option is the default for the -qarch=rs64b option or the -q64 option.

Related Information:

For more information on the -qtune compiler option, see -qtune Option.

-qwarn64 Option

Syntax:

-qwarn64 | -qnowarn64

Aids in porting code from a 32-bit environment to a 64-bit environment, by detecting the truncation of an 8-byte integer pointer to 4 bytes. The -qwarn64 option uses informational messages to identify statements that may cause problems with the 32-bit to 64-bit migration. The option name provides compatibility with the C for AIX compiler.

Rules:


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ] © Copyright IBM Corporation 1990, 1998.