A system for performing code optimization is described which includes an
optimizing analyzer within a compiler to generate a first optimizing
transformation and a second optimizing transformation and their
satisfying conditions for a compiled code. An optimization transformation
module is placed within a linker to determine which of the first and
second optimizing transformations should be selected when the compiled
code is linked with other compiled codes, and to execute the selected one
of the first and second optimizing transformations at link-time. A method
of performing code optimization is also described.