





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






CS472 1
CS472 2
Tp
CS472 3
I is determined by the program and the compiler. f is determined by the hardware being used. CPI is determined by the program, the compiler, the architecture
CS472 4
code seq 2 is faster
I by itself does not indicate performance (You need all 3 variables.)
CS472 7
cycles instructions -------- x -------------- sec cycle
CS472 8
CS472 9
Two different compilers are being tested for a 100 MHz. machine with three different classes of instructions: Class A, Class B, and Class C, which require one, two, and three cycles (respectively). Both compilers are used to produce code for a large piece of software.
Which sequence will be faster according to MIPS?
Which sequence will be faster according to execution time?
Compiler 1 5M 1M 1M Compiler 2 10M 1M 1M
Instruction counts
CS472 10
Problem 1: There are other instructions that are not floating pt that take time, but do not get counted.
Problem 2: Floating pt add, sub, mult, and div are counted equally even though mult and div take much longer.
CS472 13
CS472 14
Clock rate (MHz) Pentium
SPECfp
Pentium Pro
2 0
4
6
8
3 1
5
7
9
10
50 100 150 200 250 Clock rate (MHz)
SPECint
2 0
4
6
8
3 1
5
7
9
10
50 100 150 200 250 Pentium Pentium Pro
CS472 15
Execution Time After Improvement =
Execution Time Unaffected +( Execution Time Affected / Amount of Improvement )
How about making it 5 times faster?
CS472 16