-qaltivec

Description

Enables compiler support for vector data types.

Syntax

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

Notes

This option instructs the compiler to support vector data types and operators and has effect only when -qarch is set or implied to be a target architecture that supports VMX instructions and the -qenablevmx compiler option is in effect (it is in effect by default on currently supported Linux distributions). Otherwise, the compiler will ignore -qaltivec and issue a warning message.

When -qaltivec is in effect, the following macros are defined:

Example

To enable compiler support for vector programming, enter:

xlc myprogram.c  -qarch=ppc64v -qaltivec

Related information