2.1.3. --[no_]vectorize

This option enables or disables the generation of NEON vector instructions directly from C or C++ code.

Default

The default is --no_vectorize.

Restrictions

The following options must be specified for loops to vectorize:

--cpu=name

Target processor must have NEON capability.

-Otime

Type of optimization to reduce execution time.

-Onum

Level of optimization. One of the following must be used:

  • -O2 High optimization. This is the default.

  • -O3 Maximum optimization.

Note

NEON is an implementation of the ARM Advanced Single Instruction, Multiple Data (SIMD) extension.

A separate FLEXnet license is needed to enable the use of vectorization.

Example

armcc --vectorize --cpu=Cortex-A8 -O3 -Otime -c file.c

See also

  • --cpu=name in the Compiler Reference Guide

  • -Onum in the Compiler Reference Guide

  • -Otime in the Compiler Reference Guide.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0350A
Non-Confidential