How to dump all the optimization flags enabled?

Wei Hu glegoo@gmail.com
Fri Mar 30 03:01:00 GMT 2007


Thanks to all for the kind answers!

On 3/28/07, Ramana Radhakrishnan <ramana.radhakrishnan@celunite.com> wrote:
>
>
> On Wed, 2007-03-28 at 21:53 -0400, Wei Hu wrote:
> > Hello,
> >
> > Is there a way to tell gcc to print out all the effective optimization
> > flags when it compiles a C file?
>
> -fverbose-asm prints out all the optimization options to the assembler
> files. So a combination of --save-temps and -fverbose-asm + some
> scripting magic could do the trick for you .
>
> cheers
> Ramana
> --
> cheers
> Ramana
>
> Ramana Radhakrishnan
> IDE & Tools Group
> Celunite Inc (www.celunite.com)
>
>
>



More information about the Gcc-help mailing list