On Wed, 27 Feb 2002, Peter Jay Salzman wrote: > another optimization question: > > int n = 5; > for (i=0; i<n; ++i) > > can gcc unroll this loop the way it can (for instance) > > #define N 5 > for (i=0; i<N; ++i)
Refer to previous answer. if you use -funroll-all-loops, yes. > if it can't, what about > > const int n = 5; > for (i=0; i<n; ++i) > const int still gets allocated at run/load time, so I'd imagine -funroll-loops would not unroll this. -Gabe _______________________________________________ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
