Re: How to dump all the optimization flags enabled?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux