- Örn: Bir compiler tasarımcısı bir makina için, iki kod serisinden birini seçecektir. Donanım üreticisi aşağıdaki bilgileri vermiştir :
Bu durumda:
a) Hangi kod serisi daha çok instruction işler ?
b) Hangisi daha hızlıdır?
c) Her bir kod serisi için gerekli olan CPI nedir?
Mikroişlemciler ve Mikrobilgisayarlar
http://members.comu.edu.tr/boraugurlu/courses/bm307/content/week6/hafta6.pdf
- CS1104: Computer Organisation Part I
Tutorial #5: Performance
Answers
2. There are four classes of instructions (A, B, C and D) in a certain instruction set.
Consider two different implementations, M1 and M2, of the same instruction set.
M1 has a clock rate of 500MHz. The average number of cycles for each instruction class on M1 is as follows:
https://docs.google.com/viewer?a=v&q=cache:B5F5-radnE0J:www.comp.nus.edu.sg/~cs1104/tut/tut05ans.pdf+&hl=en&pid=bl&srcid=ADGEESjiDPIdoyTFji71goG9ZMRRYDjuTcLTbs0bvW7RSBGueKjOvxDglHwgpJSLk1pfCW9iPaEOV2B9yovoYuYdUMIP3P0ipr2A9kcsVMzVHi-6tEhAfbmpgGoDOpgtzLXUEbTLM6bO&sig=AHIEtbSCQ8B0dEGekvhBfsWwP8OYuFMeRw
- What's Chapter 2 about?
What do we mean by the performance of a computer and why are we concerned with it?
What's the best way to compare the performance of two machines?
What are benchmarks? How useful are they
http://inside.mines.edu/~crader/cs341/Chapter2.html
- Compiler Variations, MIPS & Performance:
An Example
• For a machine with instruction classes:
https://docs.google.com/viewer?a=v&q=cache:LXwykXBYjBoJ:meseec.ce.rit.edu/eecc550-spring2003/550-3-17-2003.ppt+&hl=en&pid=bl&srcid=ADGEEShRFdIZLl0XQN0O9UkR84xHX0MXzKFJbSkME97bIF8r9uFgyl8nrv_0j-JRWq7WBmx6apdDnmCj1pRdkhUJ3eabqlLnQatqGgltdX_00KWHokpesMbZxxPTjSJEtGJCM8b7dC0K&sig=AHIEtbQVDGqAUA3S4ProsElRoDzR5WdjOA
- # of Instructions Example
A compiler designer is trying to decide between two
code sequences for a particular machine. Based on
the hardware implementation, there are three different
classes of instructions: Class A, Class B, and Class
C, and they require one, two, and three cycles
(respectively).
The first code sequence has 5 instructions:
2 of A, 1 of B, and 2 of C
The second sequence has 6 instructions:
4 of A, 1 of B, and 1 of C.
Which sequence will be faster? How much?
What is the CPI for each sequence?
https://docs.google.com/viewer?a=v&q=cache:9YKby6YrxkUJ:www.es.ele.tue.nl/~heco/courses/ProcDesign/pd-4.ppt+&hl=en&pid=bl&srcid=ADGEESj_XS6S784JbrciFW-RgYTxkdQ8wpf2P20T09zfvr49KQIj98UacvRv8WJ2koWLdybu3hO2VMd2TFRqFd1j1BlyD2RC1ydI3Mzv1KtIfOj__OWIqL2bQemv_fXXyVu1NY2wD-Fh&sig=AHIEtbTiBQ7UJHkSblmvP7I9qz_MWDwdOA
No comments:
Post a Comment