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 > > -- View this message in context: http://old.nabble.com/gcc-optimisation-problem-tp31332634p31332890.html Sent from the gcc - Help mailing list archive at Nabble.com.