This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to dump all the optimization flags enabled?


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)





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]