| |
| | Code Optimization (Site not responding. Last check: 2007-10-29) |
 | | The code is typically divided into a sequence of ``basic blocks.'' A basic block is a segment of straight-line code, with no branches in or out except a branch in at the top of the block, and a branch out at the bottom. |
 | | In this example, there are three basic blocks: initialization code, the termination condition (which is located at the beginning of the loop), and the loop body and index increment code. |
 | | In this code, we have two repeated examples of doing this: all those calculations of the address of i, all those times we load it and store it, and all those times we calculate the index. |
| www.cs.nmsu.edu /~pfeiffer/classes/573/notes/optimize1.html (646 words) |
|