Mail Archives: djgpp/1997/02/28/01:14:55
I have determined that loop unrolling produces very little speed gain.
A loop such as
register int i,j;
for (i=0; i<15; i++) {
/* simple arithmetic */
for (j=0; j<21; j++) {
/* Function call and some math */
}
/* More math */
}
compiled with -O3 and a manually-unrolled loop (using macros) also
compiled with -O3 don't run at appreciably different rates.
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -