How to dump all the optimization flags enabled?

Andrew Haley aph@redhat.com
Thu Mar 29 09:42:00 GMT 2007


Wei Hu writes:
 > Hello,
 > 
 > Is there a way to tell gcc to print out all the effective optimization
 > flags when it compiles a C file?
 > I know the manual tells you what flags are set at different
 > optimization levels, but I'm still looking for an answer to my
 > question because it will be useful to my project.

Yes.  -fverbose-asm dumps the flags to the .s file.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903



More information about the Gcc-help mailing list