public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Optimization Switches
       [not found] <0f275e017c788011e2761e32fb2260b9.squirrel@www.cse.iitb.ac.in>
@ 2010-08-27 11:18 ` Andrew Haley
  0 siblings, 0 replies; only message in thread
From: Andrew Haley @ 2010-08-27 11:18 UTC (permalink / raw)
  To: gcc-help

[ Redirected to gcc-help list ]

On 08/26/2010 12:56 PM, sharjeel@cse.iitb.ac.in wrote:
> Hi,
> I wish to selectively enable specific optimizations to observe its effect
> on the source. My project requires me to do this analysis. It seemed, the
> -f* flags would enable me to do that. But it turns out that individual
> optimizations can't be enabled like that, and all the optimizations at a
> specific level gets enabled when I use a  -Ox switch. This faq  at
> http://gcc.gnu.org/wiki/FAQ#optimization-options, says this too.
> 
> So here are my two questions :
> 
> a) Is there any way to observe the effect of a particular optimization,
> without the obvious option of using a lot of -fno switches.

Use the -fdump-tree-all and the RTL dumps.

> b) And do the -f* switches serve any purpose, if I can't enable individual
> optimizations using them.

You can turn some individual optimizations on and off, but only if optimization
is enabled.

Andrew.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-26 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <0f275e017c788011e2761e32fb2260b9.squirrel@www.cse.iitb.ac.in>
2010-08-27 11:18 ` Optimization Switches Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).