This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Loop unrolling
- To: Mike Stump <mrs at wrs dot com>
- Subject: Re: Loop unrolling
- From: Branko Cibej <branko dot cibej at hermes dot si>
- Date: Fri, 12 Jun 1998 08:31:11 +0200
- Cc: egcs at cygnus dot com, pfeifer at dbai dot tuwien dot ac dot at
- Organization: HERMES SoftLab
- References: <199806102334.QAA25553@kankakee.wrs.com>
Mike Stump wrote:
> > Branko Cibej <branko.cibej@hermes.si>,
>
> His example was mistaken. He had no ``empty'' loops.
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? :-)
--
Branko Cibej <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
phone: (++386 61) 186 53 49 fax: (++386 61) 186 52 70