 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| l |
For most
languages optimization is performed
|
|
|
by the compiler
as part of compilation
|
|
|
|
|
Advantages
|
|
|
|
l |
Compilation time
is not normally of great importance, so
|
|
|
compiler can
carefully analyze code and perform time-
|
|
|
consuming
optimization.
|
|
|
|
l |
Well understood
techniques developed over decades.
|
|
|
|
|
Disadvantages
|
|
|
|
l |
Compiler only
analyzes one subroutine/class at a time.
|
|
|
|
l |
At compile time
little is known about how the program/class
|
|
will actually be
used
|
|
|
|
l |
C/C++ pointers
make optimization more difficult.
|
|