1 msgRe: Why do I get: cannot declare variable 'sc' ...
2 msgWhy do I get: cannot declare variable ‘sc’ to b...
6 msgCompiler options for PowerPC
2 msgHow to change CR/LF to LF when compile gcc-4.1....
4 msgoperator new[] and operator delete[]
1 msgWhy am I seeing these warnings from system head...
3 msg-Bgroup?
3 msgGCC-3.3.6 and MIPS instruction 'EHB'
3 msgcr5-6 registers on i386
1 msgRe: WELCOME to gcc
25 msgRobust detection of endianness at compile time.
1 msgMESAJINIZ VAR
3 msgconfigure warning - test: too many arguments
1 msgProblem in loading DLL
3 msgright shift : strange behavior
2 msgTDF_DETAILS
6 msgInitialization of a static member of a template...
1 msgRe: dlopen() crash -gcc 3.4.6 20060404
1 msgRebuild GCC 4.2

Unrolling loops
\ Joseph Jezak (25 Jul 2007)
. \ Ian Lance Taylor (26 Jul 2007)
. . \ Joseph Jezak (27 Jul 2007)

Subject:Re: Unrolling loops
Group:Gcc-help
From:Joseph Jezak
Date:27 Jul 2007


Ian Lance Taylor wrote:
> Joseph Jezak <josejx> writes:
>
>> I was looking at the binary output from a simple loop that's been
>> compiled with -funroll-all-loops and I noticed that gcc will only
>> unroll a loop if the loop repeats less than 16 times. Is there a
>> way to turn this off? Is there a reason for it?
>
> I don't think that is always true, though it may well be true for your
> test case.
>
> You can control this behaviour in various ways. Look at the
> documentation for the --param option, and the parameters like
> max-unrolled-insns.
>
> Ian
>

Thank you very much! A combination of the max-unrolled-insns and
max-unroll-times parameters made gcc behave like I needed it to.

Thanks again!
-Joe


© 2004-2008 readlist.com