about unroll loops

Phil Edwards phil@jaj.com
Fri Nov 29 20:56:00 GMT 2002


On Wed, Nov 27, 2002 at 08:02:51PM -0800, Zack Weinberg wrote:
> "Ö£¬B" <taurus-zheng@163.com> writes:
> >    I wanted to unroll the loop, so I compile it use the command 
> > "gcc -unroll-all-loops -S loop.c", then I look up the loop.s,
> > but the loop is not unroolled. Please tell me the reason.
> 
> 1) The option you want is spelled "-funroll-all-loops".

Or, if that looks strange to people used to the GNU "long options," you
can also spell it "--unroll-all-loops".

-- 
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002



More information about the Gcc mailing list