gcc peephole problem
vikramsp
vikram2rhyme@gmail.com
Thu Apr 7 08:27:00 GMT 2011
Thanks Kevin.
It is now working for me.
Cheers.
kevin diggs-2 wrote:
>
> Hi,
>
> This might make 2!
>
> On Wed, Apr 6, 2011 at 10:59 PM, vikramsp <vikram2rhyme@gmail.com> wrote:
>>
>> Hello there. I was exploring about peephole and peephole2 optimisation
>> passes of gcc c compiler. when compiling a test.c programme like this -
>>
>> ~$ gcc test.c -fpeephole2 -da
>>
>> there was no dump for peephole2 pass. same is for -fpeephole.
>> Does it mean that peephole passes are not done or is there any
>> other way to do so.
>> Please help me
>>
>
> You have to have one of the -O options (I doubt that -O0 counts) to
> have optimizations done. It won't help to just have your favorite -f:
>
> gcc -c -O2 -fpeephole -da test.c
>
> If you use -v you might see if -fpeephole is already included in one
> of the -Ox where x is one of 1, 2, or 3.
>
> Thanks.
>
> kevin
>
>> Best Regards
>> vikramsp
>> --
>> View this message in context:
>> http://old.nabble.com/gcc-peephole-problem-tp31339261p31339261.html
>
>
--
View this message in context: http://old.nabble.com/gcc-peephole-problem-tp31339261p31340486.html
Sent from the gcc - Help mailing list archive at Nabble.com.
More information about the Gcc-help
mailing list