#pragma LOOP_UNROLL: Force Loop Unrolling

Scope

Function

Syntax

#pragma LOOP_UNROLL

Synonym

None

Arguments

None

Default

None

Description

If this pragma is present, loop unrolling is performed for the next function. This is the same as setting the -Cu option for the following single function.

Listing: Using a LOOP_UNROLL pragma to unroll the for loop


#pragma LOOP_UNROLL
void F(void) {

  for (i=0; i<5; i++) { // unrolling this loop

  ...
See also

#pragma NO_LOOP_UNROLL: Disable Loop Unrolling

-Cu: Loop Unrolling