This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Loop unrolling
- To: branko dot cibej at hermes dot si (Branko Cibej)
- Subject: Re: Loop unrolling
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Fri, 12 Jun 1998 17:42:58 +0100 (BST)
- Cc: mrs at wrs dot com, egcs at cygnus dot com, pfeifer at dbai dot tuwien dot ac dot at
> 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++);