-qaltivec

Category

Language element control

Pragma equivalent

None.

Purpose

Enables compiler support for vector data types and operators.

See the XL C Language Reference for complete documentation of vector data types.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-noaltivec-.   
>>- -q--+-altivec---+------------------------------------------><

Defaults

-qnoaltivec

Usage

This option has effect only when you set or imply -qarch to be an architecture that supports vector instructions. Otherwise, the compiler ignores -qaltivec and issues a warning message.

Predefined macros

__ALTIVEC__ is defined to 1 and __VEC__ is defined to 10205 when -qaltivec is in effect; otherwise, they are undefined.

Examples

To enable compiler support for vector programming, enter the following command:

xlc myprogram.c -qarch=ppc64v -qaltivec

Related information