#pragma NO_LOOP_UNROLL: Disable Loop Unrolling

Scope

Function

Syntax

#pragma NO_LOOP_UNROLL

Synonym

None

Arguments

None

Default

None

Description

If this pragma is present, no loop unrolling is performed for the next function definition, even if the -Cu command line option is given.

Example
Listing: Using the NO_LOOP_UNROLL pragma to temporarily halt loop unrolling


#pragma NO_LOOP_UNROLL
void F(void) {

  for (i=0; i<5; i++) { // loop is NOT unrolled

    ...
See also

#pragma LOOP_UNROLL: Force Loop Unrolling

-Cu: Loop Unrolling