Thanks Eric
Eric Botcazou-3 wrote:
>
>> But i wanted to try them indivisually. Is there any method to do so?
>
> The compiler doesn't optimize anything if you don't pass at least -O.
>
> --
> Eric Botcazou
>
>
--
View this message in context:
http://old.nabble.com/Optimisation-Problem-tp
> But i wanted to try them indivisually. Is there any method to do so?
The compiler doesn't optimize anything if you don't pass at least -O.
--
Eric Botcazou
Thanks Eric.
But i wanted to try them indivisually. Is there any method to do so?
Regards - vikramsp
Eric Botcazou-3 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
>> for ex.
> 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
> for ex. i tried -funroll-loops for code
> for (int i = 0; i < 3; ++i)
> a[i] = i;
Try -O -funroll-loops.
--
Eric Botcazou