Loop Unrolling with -unroll

The -unroll[n] option is used in the following way:

The ItaniumŪ compiler currently recognizes only n = 0; any other value is ignored.

Benefits and Limitations of Loop Unrolling

The benefits of loop unrolling are as follows:

A potential limitation is that excessive unrolling, or unrolling of very large loops, can lead to increased code size.

For more information on how to optimize with -unroll[n], refer to the Intel® Pentium® 4 and Intel® Xeon™ Processor Optimization Reference Manual.