gcc optimisation problem
Paulo J. Matos
pocmatos@gmail.com
Wed Apr 6 13:55:00 GMT 2011
Hi,
Have you read what Jonathan quoted from the manual?
For your individual options to work, you also need to enable one of the
-O options.
PMatos
On 06/04/11 13:48, vikramsp wrote:
>
> no i am not using any -O options. using only individual options
> but they are not woking. I also tried -finline-functions but it is
> not working too.
> Other side I used -fpeephole2 and -da to dump all the passes
> of the compiler but peephole2 pass dump is not there. same is for
> -fpeephole. please help me.
>
>
> Jonathan Wakely-4 wrote:
>>
>> On 6 April 2011 13:13, vikramsp wrote:
>>>
>>> hello there... i am trying my hands on gcc optimisations options.
>>> i tried e.g. -finline-functions, -funroll-loops and the likes but none
>>> worked for me
>>
>> Are you also using -O ?
>>
>> As documented in the manual
>> "Most optimizations are only enabled if an -O level is set on the
>> command line. Otherwise they are disabled, even if individual
>> optimization flags are specified. "
>>
>> http://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Optimize-Options.html
>>
>>
>
More information about the Gcc-help
mailing list