|Efficacy of compiler optimizations email@example.com (2003-08-04)|
|Re: Efficacy of compiler optimizations derkgwen@HotPOP.com (Derk Gwen) (2003-08-10)|
|Re: Efficacy of compiler optimizations firstname.lastname@example.org (2003-08-10)|
|Re: Efficacy of compiler optimizations email@example.com (John Fiskio-Lasseter) (2003-08-10)|
|From:||firstname.lastname@example.org (Suresh Kumar J)|
|Date:||10 Aug 2003 10:54:13 -0400|
|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 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.
Suresh Kumar J email@example.com
Sankhya Technologies Private Limited http://www.sankhya.com
Return to the
Search the comp.compilers archives again.