#pragma NO_LOOP_UNROLL: Disable Loop Unrolling

Scope

Function

Syntax
  #pragma NO_LOOP_UNROLL 
  
Synonym

None

Arguments

None

Default

None

Description

Using this pragma prevents loop unrolling for the next function definition (as shown in the following listing), even when 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

-Oi: Inlining compiler option