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


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




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