【正文】
imization Optimization is the process of transforming a piece of code to make it more efficient (either in terms of time or space) without changing its output or sideeffects. The only difference visible to the code’s user should be that it runs faster and/or consumes less memory. Code optimization Optimization is the field where most piler research is done today. Highquality optimization is more of an art than a science. Many optimization problems are NPplete and thus most optimization algorithms rely on heuristics and approximations. It may be possible to e up with a case where a particular algorithm fails to produce better code or perhaps even makes it worse. However, the algorithms tend to do rather well overall. When and in what representation to optimize There are a variety of tactics for attacking optimization. Some techniques a