Re: Efficacy of compiler optimizations (Suresh Kumar J)
10 Aug 2003 10:54:13 -0400

          From comp.compilers

Related articles
Efficacy of compiler optimizations (2003-08-04)
Re: Efficacy of compiler optimizations (Derk Gwen) (2003-08-10)
Re: Efficacy of compiler optimizations (2003-08-10)
Re: Efficacy of compiler optimizations (John Fiskio-Lasseter) (2003-08-10)
| List of all articles for this month |

From: (Suresh Kumar J)
Newsgroups: comp.compilers
Date: 10 Aug 2003 10:54:13 -0400
References: 03-08-012
Keywords: optimize
Posted-Date: 10 Aug 2003 10:54:12 EDT


> First of all there are numerous number of compiler optimizations and
> they each have their own 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.


Suresh Kumar J
Sankhya Technologies Private Limited

Post a followup to this message

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