Re: Efficacy of compiler optimizations

Derk Gwen <>
10 Aug 2003 10:51:21 -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: Derk Gwen <>
Newsgroups: comp.compilers
Date: 10 Aug 2003 10:51:21 -0400
Organization: Quick STOP Groceries
References: 03-08-012
Keywords: optimize, practice
Posted-Date: 10 Aug 2003 10:51:21 EDT (Learner) wrote:
# Hi all,
# I had a general question about compiler optimizations and believe
# this is a great place to ask!
# 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.

There is no simple, linear relation. Small changes in the program can have
major effects on the optimisation.

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

Optimisation are usually orderred so that one phase sets up conditions
that subsequent phases can assume are true rather repeating
work. Otherwise nonlinearities getting the best orderring and
interleaving of phases is artwork or guesswork.

Derk Gwen
The whole world's against us.

Post a followup to this message

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