Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

HOW DOES I OPTIMIZE FURTHER AND UNROLL LOOPS

Name: Anonymous 2009-03-25 11:51

HOW?

Name: Anonymous 2009-03-25 11:57

I've never heard of a further loop.

Name: Anonymous 2009-03-25 12:41

And I've never heard of an unroll loop.

Name: Anonymous 2009-03-25 12:49

>>3
They're faster than for loops, but a lot of compilers don't support them. If you pass -funroll-loops to gcc when compiling, it will convert all of your for loops to unroll loops automatically.

I always use this flag. I don't know why anyone would want to have for loops in their executable files when unroll loops are available for the mere cost of a simple compiler flag.

Name: Anonymous 2009-03-25 13:39

>>4
ITS A CLASSIC TIME/SPACE TRADE-OFF

Name: Anonymous 2009-03-25 13:41

>>5
Actually I's not as simple, as smaller somethimes means faster (better branch prediction and less code cache pressure).

Name: Anonymous 2009-03-25 14:08

>>6
How exactly would smaller code benefit branch prediction in this context? There aren't any branches in unrolled loops after all.

Name: Anonymous 2009-03-25 14:20

>>7
>There aren't any branches in unrolled loops after all
I don't think you really understand loop unrolling.

Name: Anonymous 2009-03-25 15:11

>>8
>There aren't any branches in unrolled loops after all
I don't think you really understand loop unrolling.

I don't think you really understand either loop unrolling or quoting.

Name: Anonymous 2009-03-25 16:58

I don't think >>5-8 understand trolling.

Name: Anonymous 2009-07-12 6:54

and BOOK He DRAGON  i FORTRON It's doing the banned.  was  (to think In would it think which

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List