Re: Efficacy of compiler optimizations

suresh@sankhya.com (Suresh Kumar J)
10 Aug 2003 10:54:13 -0400

          From comp.compilers

Related articles
Efficacy of compiler optimizations kernel_learner@yahoo.com (2003-08-04)
Re: Efficacy of compiler optimizations derkgwen@HotPOP.com (Derk Gwen) (2003-08-10)
Re: Efficacy of compiler optimizations suresh@sankhya.com (2003-08-10)
Re: Efficacy of compiler optimizations johnfl@cs.uoregon.edu (John Fiskio-Lasseter) (2003-08-10)
| List of all articles for this month |
From: suresh@sankhya.com (Suresh Kumar J)
Newsgroups: comp.compilers
Date: 10 Aug 2003 10:54:13 -0400
Organization: http://groups.google.com/
References: 03-08-012
Keywords: optimize
Posted-Date: 10 Aug 2003 10:54:12 EDT

Hi,


> First of all there are numerous number of compiler optimizations and
> they each have their own characteristics..my questions is two-fold:
>
> 1. What is the cost/benefit ratio of these optimizations.


It purly depends on your interst. Many compilers support options for
tradeoff like space-speed etc.


> 2. How do these compiler optimizations interact? i.e. does one
> optimization negate the effect of another optimization if done in a
> particular order?


The behaviour depends on the compiler that you are using. Some of the
compilers will negate the preceding options based on the options
specified at the end. For eg, specifying -O5 -g may set the
optimization level to a lower level in order to provide better
debugging support. Specifying -O4 -g -O5 may negate -O4 and -g. All
depends on the compiler.


Regards,
Suresh


--
Suresh Kumar J suresh@sankhya.com
Sankhya Technologies Private Limited http://www.sankhya.com


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.