This is our class project of cs252 -- "advanced computer architechture" taught by Professor Randy Katz. We are particularly grateful to him and the teaching assitant Giao Thanh Nguyen for their comments and suggestions. Giao also provided us with the SPEC benchmark programs and got us started on using Shade.