Optimisation Problem

Eric Botcazou ebotcazou@adacore.com
Wed Apr 6 19:42:00 GMT 2011


> 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



More information about the Gcc-bugs mailing list