This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc optimisation problem
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: vikramsp <vikram2rhyme at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 6 Apr 2011 13:35:50 +0100
- Subject: Re: gcc optimisation problem
- References: <31332634.post@talk.nabble.com>
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