altivec

Applies to C Applies to C++

Purpose

Enables compiler support for AltiVec data types.

Syntax


Syntax Diagram

Notes

The AltiVec Programming Interface specification describes a special set of vector data types and operators. This option instructs the compiler to support AltiVec data types and operators.

Specifying -qaltivec has effect only when -qarch is set or implied to be ppc970. The compiler will ignore -qaltivec and issue a warning if other settings of -qarch are set or implied.

Also, -qaltivec cannot be used if -qnoenablevmx is in effect.

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

Example

To enable compiler support for the AltiVec Pogramming Interface specification, enter:

xlc myprogram.c -qaltivec

Related References

Compiler Command Line Options
arch
tune
#pragma altivec_vrsave IBM Copyright 2003