[vox-tech] another gcc question

Rod Roark vox-tech@lists.lugod.org
Wed, 27 Feb 2002 10:00:10 -0800


You can compile with -S and then look at the assembler output file.

-- Rod
   http://www.sunsetsystems.com/

On Wednesday 27 February 2002 09:31, Peter Jay Salzman wrote:
> another optimization question:
>
>    int n = 5;
>    for (i=0; i<n; ++i)
>
> can gcc unroll this loop the way it can (for instance)
>
>    #define N 5
>    for (i=0; i<N; ++i)
>
> if it can't, what about
>
>    const int n = 5;
> 	for (i=0; i<n; ++i)
>
> pete