Slot26 CH15 ReduceInstructionSetComputers 24 Slides
Slot26 CH15 ReduceInstructionSetComputers 24 Slides
Reduced
Instruction Set
Chapter Computers (RISC)
15
William Stallings, Computer Organization and Architecture, 9th
Introduction
Two trends in CPU architecture:
■CISC: Complex Instruction Set Computing/Computer
such as IBM System/360, PDP-11, Motorola 6809,
68000, Intel 8080, x86,… CPU is set up to execute
many instructions.
■More details:
http://en.wikipedia.org/wiki/Complex_instruction_set_computing
http://en.wikipedia.org/wiki/Reduced_instruction_set_computing
Comparing several RISC and
Non-RISC Systems
Execution
Characteristic
• High-level languages (HLLs)
s •• Allow the programmer to express algorithms more concisely
Allow the compiler to take care of details that are not important in the programmer’s expression of algorithms
• Often support naturally the use of structured programming and/or object-oriented design
• Semantic gap
• The difference between the operations provided in HLLs and those provided in computer architecture
• Operations performed
• Determine the functions to be performed by the processor and its interaction with memory
• Operands used
• The types of operands and the frequency of their use determine the memory organization for storing them and the
addressing modes for accessing them
• Execution sequencing
• Determines the control and pipeline organization
Statement
Procedure Call:
Arguments and Local Scalar Variables
Statistic
slower
12.5- RISC Pipelining
Instruction pipelining is often used to enhance performance.
Most instructions in RISC are register to register.
■Delayed Load
■ Register to be target is locked by processor
■ Continue execution of instruction stream until register required
■ Idle until load is complete
■ Re-arranging instructions can allow useful work while loading
Program in the
table 15.6
Loop Unrolling Twice Example
Compiler technique to
improve instruction
parallelism is loop
unrolling .
Unrolling can improve
the performance by:
Reducing loop overhead,
increasing instruction
parallelism by improving
pipeline performance,
improving register, data
cache, or TLB locality
Number of loops
decreases 2 times
+15.8-RISC versus CISC Controversy
■Quantitative – So sánh định lượng
■ Compare program sizes and execution speeds of programs
on RISC and CISC machines that use comparable
technology