This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Loop unrolling


> Aha. All right then, I'll remember my early Pascal days and write
> 
>      int n = 1;
>      do { n = n + 1; } while (n != 100);
> 
> then I'll compile that with -fread-programmers-mind to tell the compiler I
> don't want the loop optimised out.
> 
> (Or should it be -fdivine-from-fish-entrails? :-)

Apropos... is the following an empty loop?

for (i = 0; i <= 9; i = foo (i));

Or this one?

for (i = 0; i <= bar (); i++);

Or that one?

for (i = 0; baz (i, 9); i++);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]