| |||
| Home > Compiler Command-line Options > --vectorize, --no_vectorize | |||
This option enables or disables the generation of NEON vector instructions directly from C or C++ code.
The following options must be specified for loops to vectorize:
--cpu=nameTarget processor must have NEON capability.
-OtimeType of optimization to reduce execution time.
-OnumLevel of optimization. One of the following must be used:
-O2 High
optimization. This is the default.
-O3 Maximum optimization.
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.
This example invokes automatic vectorization on the Cortex-A8 processor.
armcc --vectorize --cpu=Cortex-A8 -O3 -Otime -c file.c
Using the command-line options -O3 and -Otime ensures
that the code achieves significant performance benefits in addition
to those of vectorization.
You can also compile with -O2 -Otime. However,
this does not give the maximum code performance.
Using the NEON Vectorizing Compiler in Using the ARM Compiler
Licensed features of the toolchain in Introducing the ARM Compiler toolchain.