05.08.2014 Views

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Use C2<br />

CPI on M1 = 4*0.3+6*0.2+8*0.5<br />

= 6.4<br />

CPI on M2 = 2*0.3+4*0.2+3*0.5<br />

= 2.9<br />

Page | 129<br />

CPU time M1 = 6.4/400* x<br />

CPU time M2 = 2.9/200* x<br />

Per<strong>for</strong>mance M1 CPU time M2<br />

= <br />

Per<strong>for</strong>mance M2 CPU time M1<br />

= 0.90625<br />

Use 3 rd party compiler<br />

CPI on M1 = 4*0.5+6*0.3+8*0.2<br />

= 5.4<br />

CPI on M2 = 2*0.5 +4*0.3+3*0.2<br />

= 2.8<br />

CPU time M1 = 5.4/400* x<br />

CPU time M2 = 2.9/200* x<br />

Per<strong>for</strong>mance M1 CPU time M2<br />

= <br />

Per<strong>for</strong>mance M2 CPU time M1<br />

= 1.04

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!