SlideShare une entreprise Scribd logo
1  sur  39
Top School in Gudgao 
By: 
School.edhole.com
William Stallings 
Computer Organization 
and Architecture 
6th Edition 
Chapter 13 
Reduced Instruction 
Set Computers 
School.edhole.com
Major Advances in Computers(1) 
• The family concept 
—IBM System/360 1964 
—DEC PDP-8 
—Separates architecture from implementation 
• Microporgrammed control unit 
—Idea by Wilkes 1951 
—Produced by IBM S/360 1964 
• Cache memory 
—IBM S/360 model 85 1969 
School.edhole.com
Major Advances in Computers(2) 
• Solid State RAM 
—(See memory notes) 
• Microprocessors 
—Intel 4004 1971 
• Pipelining 
—Introduces parallelism into fetch execute cycle 
• Multiple processors 
School.edhole.com
The Next Step - RISC 
• Reduced Instruction Set Computer 
• Key features 
—Large number of general purpose registers 
—or use of compiler technology to optimize register use 
—Limited and simple instruction set 
—Emphasis on optimising the instruction pipeline 
School.edhole.com
Comparison of processors 
School.edhole.com
Driving force for CISC 
• Software costs far exceed hardware costs 
• Increasingly complex high level languages 
• Semantic gap 
• Leads to: 
—Large instruction sets 
—More addressing modes 
—Hardware implementations of HLL statements 
– e.g. CASE (switch) on VAX 
School.edhole.com
Intention of CISC 
• Ease compiler writing 
• Improve execution efficiency 
—Complex operations in microcode 
• Support more complex HLLs 
School.edhole.com
Execution Characteristics 
• Operations performed 
• Operands used 
• Execution sequencing 
• Studies have been done based on programs 
written in HLLs 
• Dynamic studies are measured during the 
execution of the program 
School.edhole.com
Operations 
• Assignments 
—Movement of data 
• Conditional statements (IF, LOOP) 
—Sequence control 
• Procedure call-return is very time consuming 
• Some HLL instruction lead to many machine 
code operations 
School.edhole.com
Relative Dynamic Frequency 
Dynamic Machine Instruction Memory Reference 
Occurrence (Weighted) (Weighted) 
Pascal C Pascal C Pascal C 
Assign 45 38 13 13 14 15 
Loop 5 3 42 32 33 26 
Call 15 12 31 33 44 45 
If 29 43 11 21 7 13 
GoTo - 3 - - - - 
Other 6 1 3 1 2 1 
School.edhole.com
Operands 
• Mainly local scalar variables 
• Optimisation should concentrate on accessing 
local variables 
Pascal C Average 
Integer constant 16 23 20 
Scalar variable 58 53 55 
Array/structure 26 24 25 
School.edhole.com
Procedure Calls 
• Very time consuming 
• Depends on number of parameters passed 
• Depends on level of nesting 
• Most programs do not do a lot of calls followed 
by lots of returns 
• Most variables are local 
• (c.f. locality of reference) 
School.edhole.com
Implications 
• Best support is given by optimising most used 
and most time consuming features 
• Large number of registers 
—Operand referencing 
• Careful design of pipelines 
—Branch prediction etc. 
• Simplified (reduced) instruction set 
School.edhole.com
Large Register File 
• Software solution 
—Require compiler to allocate registers 
—Allocate based on most used variables in a given time 
—Requires sophisticated program analysis 
• Hardware solution 
—Have more registers 
—Thus more variables will be in registers 
School.edhole.com
Registers for Local Variables 
• Store local scalar variables in registers 
• Reduces memory access 
• Every procedure (function) call changes locality 
• Parameters must be passed 
• Results must be returned 
• Variables from calling programs must be 
restored 
School.edhole.com
Register Windows 
• Only few parameters 
• Limited range of depth of call 
• Use multiple small sets of registers 
• Calls switch to a different set of registers 
• Returns switch back to a previously used set of 
registers 
School.edhole.com
Register Windows cont. 
• Three areas within a register set 
—Parameter registers 
—Local registers 
—Temporary registers 
—Temporary registers from one set overlap parameter 
registers from the next 
—This allows parameter passing without moving data 
School.edhole.com
Overlapping Register Windows 
School.edhole.com
Circular Buffer diagram 
School.edhole.com
Operation of Circular Buffer 
• When a call is made, a current window pointer 
is moved to show the currently active register 
window 
• If all windows are in use, an interrupt is 
generated and the oldest window (the one 
furthest back in the call nesting) is saved to 
memory 
• A saved window pointer indicates where the 
next saved windows should restore to 
School.edhole.com
Global Variables 
• Allocated by the compiler to memory 
—Inefficient for frequently accessed variables 
• Have a set of registers for global variables 
School.edhole.com
Registers v Cache 
• Large Register File Cache 
• All local scalars Recently used local scalars 
• Individual variables Blocks of memory 
• Compiler assigned global variables Recently used global variables 
• Save/restore based on procedure Save/restore based on 
nesting caching algorithm 
• Register addressing Memory addressing 
School.edhole.com
Referencing a Scalar - 
Window Based Register File 
School.edhole.com
Referencing a Scalar - Cache 
School.edhole.com
Compiler Based Register Optimization 
• Assume small number of registers (16-32) 
• Optimizing use is up to compiler 
• HLL programs have no explicit references to 
registers 
—usually - think about C - register int 
• Assign symbolic or virtual register to each 
candidate variable 
• Map (unlimited) symbolic registers to real 
registers 
• Symbolic registers that do not overlap can share 
real registers 
• School.If you run edhole.out of com 
real registers some variables 
use memory
Graph Coloring 
• Given a graph of nodes and edges 
• Assign a color to each node 
• Adjacent nodes have different colors 
• Use minimum number of colors 
• Nodes are symbolic registers 
• Two registers that are live in the same program 
fragment are joined by an edge 
• Try to color the graph with n colors, where n is 
the number of real registers 
• Nodes that can not be colored are placed in 
SmScchehmooooolr.lye.eddhhoolele.c.coomm
Graph Coloring Approach 
School.edhole.com
Why CISC (1)? 
• Compiler simplification? 
—Disputed… 
—Complex machine instructions harder to exploit 
—Optimization more difficult 
• Smaller programs? 
—Program takes up less memory but… 
—Memory is now cheap 
—May not occupy less bits, just look shorter in symbolic 
form 
– More instructions require longer op-codes 
– Register references require fewer bits 
School.edhole.com
Why CISC (2)? 
• Faster programs? 
—Bias towards use of simpler instructions 
—More complex control unit 
—Microprogram control store larger 
—thus simple instructions take longer to execute 
• It is far from clear that CISC is the appropriate 
solution 
School.edhole.com
RISC Characteristics 
• One instruction per cycle 
• Register to register operations 
• Few, simple addressing modes 
• Few, simple instruction formats 
• Hardwired design (no microcode) 
• Fixed instruction format 
• More compile time/effort 
School.edhole.com
RISC v CISC 
• Not clear cut 
• Many designs borrow from both philosophies 
• e.g. PowerPC and Pentium II 
School.edhole.com
RISC Pipelining 
• Most instructions are register to register 
• Two phases of execution 
—I: Instruction fetch 
—E: Execute 
– ALU operation with register input and output 
• For load and store 
—I: Instruction fetch 
—E: Execute 
– Calculate memory address 
—D: Memory 
– Register to memory or memory to register operation 
School.edhole.com
Effects of Pipelining 
School.edhole.com
Optimization of Pipelining 
• Delayed branch 
—Does not take effect until after execution of following 
instruction 
—This following instruction is the delay slot 
School.edhole.com
Normal and Delayed Branch 
Address Normal Delayed Optimized 
100 LOAD X,A LOAD X,A LOAD X,A 
101 ADD 1,A ADD 1,A JUMP 105 
102 JUMP 105 JUMP 105 ADD 1,A 
103 ADD A,B NOOP ADD A,B 
104 SUB C,B ADD A,B SUB C,B 
105 STORE A,Z SUB C,B STORE A,Z 
106 STORE A,Z 
School.edhole.com
Use of Delayed 
Branch 
School.edhole.com
Controversy 
• Quantitative 
—compare program sizes and execution speeds 
• Qualitative 
—examine issues of high level language support and 
use of VLSI real estate 
• Problems 
—No pair of RISC and CISC that are directly 
comparable 
—No definitive set of test programs 
—Difficult to separate hardware effects from complier 
effects 
—Most comparisons done on “toy” rather than 
production machines 
—Most commercial devices are a mixture 
School.edhole.com
Required Reading 
• Stallings chapter 13 
• Manufacturer web sites 
School.edhole.com

Contenu connexe

Tendances

11 instruction sets addressing modes
11  instruction sets addressing modes 11  instruction sets addressing modes
11 instruction sets addressing modes
Kanika Thakur
 
chap 18 multicore computers
chap 18 multicore computers chap 18 multicore computers
chap 18 multicore computers
Sher Shah Merkhel
 

Tendances (20)

Simplified instructional computer
Simplified instructional computerSimplified instructional computer
Simplified instructional computer
 
13 risc
13 risc13 risc
13 risc
 
11 instruction sets addressing modes
11  instruction sets addressing modes 11  instruction sets addressing modes
11 instruction sets addressing modes
 
System design techniques and networks
System design techniques and networksSystem design techniques and networks
System design techniques and networks
 
Embedded computing platform design
Embedded computing platform designEmbedded computing platform design
Embedded computing platform design
 
11 instruction sets addressing modes
11  instruction sets addressing modes 11  instruction sets addressing modes
11 instruction sets addressing modes
 
CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)CS4443 - Modern Programming Language - I Lecture (1)
CS4443 - Modern Programming Language - I Lecture (1)
 
15 ia64
15 ia6415 ia64
15 ia64
 
Introduction to Simplified instruction computer or SIC/XE
Introduction to Simplified instruction computer or SIC/XEIntroduction to Simplified instruction computer or SIC/XE
Introduction to Simplified instruction computer or SIC/XE
 
Introducing Embedded Systems and the Microcontrollers
Introducing Embedded Systems and the MicrocontrollersIntroducing Embedded Systems and the Microcontrollers
Introducing Embedded Systems and the Microcontrollers
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Synapseindia dot net development computer programming
Synapseindia dot net development  computer programmingSynapseindia dot net development  computer programming
Synapseindia dot net development computer programming
 
14 superscalar
14 superscalar14 superscalar
14 superscalar
 
chap 18 multicore computers
chap 18 multicore computers chap 18 multicore computers
chap 18 multicore computers
 
Risc & cisk
Risc & ciskRisc & cisk
Risc & cisk
 
Risc vs cisc
Risc vs ciscRisc vs cisc
Risc vs cisc
 
Ch0 computer systems overview
Ch0 computer systems overviewCh0 computer systems overview
Ch0 computer systems overview
 
Array Processor
Array ProcessorArray Processor
Array Processor
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
 
Pe 6441 advanced manufacturing lab ch4 wks 12 14
Pe  6441 advanced manufacturing lab ch4 wks 12 14Pe  6441 advanced manufacturing lab ch4 wks 12 14
Pe 6441 advanced manufacturing lab ch4 wks 12 14
 

En vedette

Block personal luiss
Block personal luissBlock personal luiss
Block personal luiss
theanswer13
 
Osebno_8_nov14
Osebno_8_nov14Osebno_8_nov14
Osebno_8_nov14
Ana Herman
 
Enfermedades gingivales-inducida-por-factores-sistemicos
Enfermedades gingivales-inducida-por-factores-sistemicosEnfermedades gingivales-inducida-por-factores-sistemicos
Enfermedades gingivales-inducida-por-factores-sistemicos
joaocast_253
 
Module 5 school and community partnership post assessment
Module 5 school and community partnership   post assessmentModule 5 school and community partnership   post assessment
Module 5 school and community partnership post assessment
Tess Asuncion
 
Rose presentation - C Peters
Rose presentation - C PetersRose presentation - C Peters
Rose presentation - C Peters
Charlene Peters
 
Cara membuat-proposal-sponsorship
Cara membuat-proposal-sponsorshipCara membuat-proposal-sponsorship
Cara membuat-proposal-sponsorship
Moklas Learning
 
Corporate Magazine UNSERE KJF selection of 6 cover pages
Corporate Magazine UNSERE KJF selection of 6 cover pagesCorporate Magazine UNSERE KJF selection of 6 cover pages
Corporate Magazine UNSERE KJF selection of 6 cover pages
Dr. Götz-Dietrich Opitz
 

En vedette (20)

Block personal luiss
Block personal luissBlock personal luiss
Block personal luiss
 
blog personal luiss
blog personal luissblog personal luiss
blog personal luiss
 
problem solving
problem solvingproblem solving
problem solving
 
27 de enero cruz roja nicaraguense firma acuerdo de transicion de los banco...
27 de enero   cruz roja nicaraguense firma acuerdo de transicion de los banco...27 de enero   cruz roja nicaraguense firma acuerdo de transicion de los banco...
27 de enero cruz roja nicaraguense firma acuerdo de transicion de los banco...
 
Top schools in noida
Top schools in noidaTop schools in noida
Top schools in noida
 
Reglement diterzi
Reglement diterziReglement diterzi
Reglement diterzi
 
Osebno_8_nov14
Osebno_8_nov14Osebno_8_nov14
Osebno_8_nov14
 
Radiografia en endodoncia
Radiografia en endodonciaRadiografia en endodoncia
Radiografia en endodoncia
 
Presidente da UBE homenageia Dom Duarte de Bragança
Presidente da UBE homenageia Dom Duarte de BragançaPresidente da UBE homenageia Dom Duarte de Bragança
Presidente da UBE homenageia Dom Duarte de Bragança
 
Bitacoras
BitacorasBitacoras
Bitacoras
 
Apkg pkr 1 nila
Apkg pkr 1 nilaApkg pkr 1 nila
Apkg pkr 1 nila
 
Program 2015
Program 2015Program 2015
Program 2015
 
Enfermedades gingivales-inducida-por-factores-sistemicos
Enfermedades gingivales-inducida-por-factores-sistemicosEnfermedades gingivales-inducida-por-factores-sistemicos
Enfermedades gingivales-inducida-por-factores-sistemicos
 
Module 5 school and community partnership post assessment
Module 5 school and community partnership   post assessmentModule 5 school and community partnership   post assessment
Module 5 school and community partnership post assessment
 
Rose presentation - C Peters
Rose presentation - C PetersRose presentation - C Peters
Rose presentation - C Peters
 
Twin oak
Twin oakTwin oak
Twin oak
 
Cara membuat-proposal-sponsorship
Cara membuat-proposal-sponsorshipCara membuat-proposal-sponsorship
Cara membuat-proposal-sponsorship
 
Lista de Exercicios Sistemas Lineares do 1 grau.
Lista de Exercicios Sistemas Lineares do 1 grau.Lista de Exercicios Sistemas Lineares do 1 grau.
Lista de Exercicios Sistemas Lineares do 1 grau.
 
Taller 1 plan de mercadeo angie
Taller 1 plan de mercadeo angieTaller 1 plan de mercadeo angie
Taller 1 plan de mercadeo angie
 
Corporate Magazine UNSERE KJF selection of 6 cover pages
Corporate Magazine UNSERE KJF selection of 6 cover pagesCorporate Magazine UNSERE KJF selection of 6 cover pages
Corporate Magazine UNSERE KJF selection of 6 cover pages
 

Similaire à Top schools in gudgao

chapter8.ppt clean code Boundary ppt Coding guide
chapter8.ppt clean code Boundary ppt Coding guidechapter8.ppt clean code Boundary ppt Coding guide
chapter8.ppt clean code Boundary ppt Coding guide
SanjeevSaharan5
 
Performance Tuning by Dijesh P
Performance Tuning by Dijesh PPerformance Tuning by Dijesh P
Performance Tuning by Dijesh P
PlusOrMinusZero
 

Similaire à Top schools in gudgao (20)

RISC.ppt
RISC.pptRISC.ppt
RISC.ppt
 
Reduced instruction set computers
Reduced instruction set computersReduced instruction set computers
Reduced instruction set computers
 
OpenPOWER Webinar
OpenPOWER Webinar OpenPOWER Webinar
OpenPOWER Webinar
 
chapter8.ppt clean code Boundary ppt Coding guide
chapter8.ppt clean code Boundary ppt Coding guidechapter8.ppt clean code Boundary ppt Coding guide
chapter8.ppt clean code Boundary ppt Coding guide
 
06-cpu-pre.pptx
06-cpu-pre.pptx06-cpu-pre.pptx
06-cpu-pre.pptx
 
Performance Tuning by Dijesh P
Performance Tuning by Dijesh PPerformance Tuning by Dijesh P
Performance Tuning by Dijesh P
 
Basics of micro controllers for biginners
Basics of  micro controllers for biginnersBasics of  micro controllers for biginners
Basics of micro controllers for biginners
 
Processors selection
Processors selectionProcessors selection
Processors selection
 
01p1_introduction_to_embedded_system.pdf
01p1_introduction_to_embedded_system.pdf01p1_introduction_to_embedded_system.pdf
01p1_introduction_to_embedded_system.pdf
 
RISC Vs CISC Computer architecture and design
RISC Vs CISC Computer architecture and designRISC Vs CISC Computer architecture and design
RISC Vs CISC Computer architecture and design
 
Lec4 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- ISA
Lec4 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- ISALec4 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- ISA
Lec4 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- ISA
 
UNIT 3 - General Purpose Processors
UNIT 3 - General Purpose ProcessorsUNIT 3 - General Purpose Processors
UNIT 3 - General Purpose Processors
 
A12 vercelletto indexing_techniques
A12 vercelletto indexing_techniquesA12 vercelletto indexing_techniques
A12 vercelletto indexing_techniques
 
aca mod1.pptx
aca mod1.pptxaca mod1.pptx
aca mod1.pptx
 
lec25-final.ppt
lec25-final.pptlec25-final.ppt
lec25-final.ppt
 
Computer organization basics
Computer organization  basicsComputer organization  basics
Computer organization basics
 
Parallel Processors (SIMD)
Parallel Processors (SIMD) Parallel Processors (SIMD)
Parallel Processors (SIMD)
 
Parallel Processors (SIMD)
Parallel Processors (SIMD) Parallel Processors (SIMD)
Parallel Processors (SIMD)
 
Fundamentals.pptx
Fundamentals.pptxFundamentals.pptx
Fundamentals.pptx
 
Introduction to multicore .ppt
Introduction to multicore .pptIntroduction to multicore .ppt
Introduction to multicore .ppt
 

Plus de Edhole.com

Plus de Edhole.com (20)

Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbai
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 

Dernier

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Dernier (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

Top schools in gudgao

  • 1. Top School in Gudgao By: School.edhole.com
  • 2. William Stallings Computer Organization and Architecture 6th Edition Chapter 13 Reduced Instruction Set Computers School.edhole.com
  • 3. Major Advances in Computers(1) • The family concept —IBM System/360 1964 —DEC PDP-8 —Separates architecture from implementation • Microporgrammed control unit —Idea by Wilkes 1951 —Produced by IBM S/360 1964 • Cache memory —IBM S/360 model 85 1969 School.edhole.com
  • 4. Major Advances in Computers(2) • Solid State RAM —(See memory notes) • Microprocessors —Intel 4004 1971 • Pipelining —Introduces parallelism into fetch execute cycle • Multiple processors School.edhole.com
  • 5. The Next Step - RISC • Reduced Instruction Set Computer • Key features —Large number of general purpose registers —or use of compiler technology to optimize register use —Limited and simple instruction set —Emphasis on optimising the instruction pipeline School.edhole.com
  • 6. Comparison of processors School.edhole.com
  • 7. Driving force for CISC • Software costs far exceed hardware costs • Increasingly complex high level languages • Semantic gap • Leads to: —Large instruction sets —More addressing modes —Hardware implementations of HLL statements – e.g. CASE (switch) on VAX School.edhole.com
  • 8. Intention of CISC • Ease compiler writing • Improve execution efficiency —Complex operations in microcode • Support more complex HLLs School.edhole.com
  • 9. Execution Characteristics • Operations performed • Operands used • Execution sequencing • Studies have been done based on programs written in HLLs • Dynamic studies are measured during the execution of the program School.edhole.com
  • 10. Operations • Assignments —Movement of data • Conditional statements (IF, LOOP) —Sequence control • Procedure call-return is very time consuming • Some HLL instruction lead to many machine code operations School.edhole.com
  • 11. Relative Dynamic Frequency Dynamic Machine Instruction Memory Reference Occurrence (Weighted) (Weighted) Pascal C Pascal C Pascal C Assign 45 38 13 13 14 15 Loop 5 3 42 32 33 26 Call 15 12 31 33 44 45 If 29 43 11 21 7 13 GoTo - 3 - - - - Other 6 1 3 1 2 1 School.edhole.com
  • 12. Operands • Mainly local scalar variables • Optimisation should concentrate on accessing local variables Pascal C Average Integer constant 16 23 20 Scalar variable 58 53 55 Array/structure 26 24 25 School.edhole.com
  • 13. Procedure Calls • Very time consuming • Depends on number of parameters passed • Depends on level of nesting • Most programs do not do a lot of calls followed by lots of returns • Most variables are local • (c.f. locality of reference) School.edhole.com
  • 14. Implications • Best support is given by optimising most used and most time consuming features • Large number of registers —Operand referencing • Careful design of pipelines —Branch prediction etc. • Simplified (reduced) instruction set School.edhole.com
  • 15. Large Register File • Software solution —Require compiler to allocate registers —Allocate based on most used variables in a given time —Requires sophisticated program analysis • Hardware solution —Have more registers —Thus more variables will be in registers School.edhole.com
  • 16. Registers for Local Variables • Store local scalar variables in registers • Reduces memory access • Every procedure (function) call changes locality • Parameters must be passed • Results must be returned • Variables from calling programs must be restored School.edhole.com
  • 17. Register Windows • Only few parameters • Limited range of depth of call • Use multiple small sets of registers • Calls switch to a different set of registers • Returns switch back to a previously used set of registers School.edhole.com
  • 18. Register Windows cont. • Three areas within a register set —Parameter registers —Local registers —Temporary registers —Temporary registers from one set overlap parameter registers from the next —This allows parameter passing without moving data School.edhole.com
  • 19. Overlapping Register Windows School.edhole.com
  • 20. Circular Buffer diagram School.edhole.com
  • 21. Operation of Circular Buffer • When a call is made, a current window pointer is moved to show the currently active register window • If all windows are in use, an interrupt is generated and the oldest window (the one furthest back in the call nesting) is saved to memory • A saved window pointer indicates where the next saved windows should restore to School.edhole.com
  • 22. Global Variables • Allocated by the compiler to memory —Inefficient for frequently accessed variables • Have a set of registers for global variables School.edhole.com
  • 23. Registers v Cache • Large Register File Cache • All local scalars Recently used local scalars • Individual variables Blocks of memory • Compiler assigned global variables Recently used global variables • Save/restore based on procedure Save/restore based on nesting caching algorithm • Register addressing Memory addressing School.edhole.com
  • 24. Referencing a Scalar - Window Based Register File School.edhole.com
  • 25. Referencing a Scalar - Cache School.edhole.com
  • 26. Compiler Based Register Optimization • Assume small number of registers (16-32) • Optimizing use is up to compiler • HLL programs have no explicit references to registers —usually - think about C - register int • Assign symbolic or virtual register to each candidate variable • Map (unlimited) symbolic registers to real registers • Symbolic registers that do not overlap can share real registers • School.If you run edhole.out of com real registers some variables use memory
  • 27. Graph Coloring • Given a graph of nodes and edges • Assign a color to each node • Adjacent nodes have different colors • Use minimum number of colors • Nodes are symbolic registers • Two registers that are live in the same program fragment are joined by an edge • Try to color the graph with n colors, where n is the number of real registers • Nodes that can not be colored are placed in SmScchehmooooolr.lye.eddhhoolele.c.coomm
  • 28. Graph Coloring Approach School.edhole.com
  • 29. Why CISC (1)? • Compiler simplification? —Disputed… —Complex machine instructions harder to exploit —Optimization more difficult • Smaller programs? —Program takes up less memory but… —Memory is now cheap —May not occupy less bits, just look shorter in symbolic form – More instructions require longer op-codes – Register references require fewer bits School.edhole.com
  • 30. Why CISC (2)? • Faster programs? —Bias towards use of simpler instructions —More complex control unit —Microprogram control store larger —thus simple instructions take longer to execute • It is far from clear that CISC is the appropriate solution School.edhole.com
  • 31. RISC Characteristics • One instruction per cycle • Register to register operations • Few, simple addressing modes • Few, simple instruction formats • Hardwired design (no microcode) • Fixed instruction format • More compile time/effort School.edhole.com
  • 32. RISC v CISC • Not clear cut • Many designs borrow from both philosophies • e.g. PowerPC and Pentium II School.edhole.com
  • 33. RISC Pipelining • Most instructions are register to register • Two phases of execution —I: Instruction fetch —E: Execute – ALU operation with register input and output • For load and store —I: Instruction fetch —E: Execute – Calculate memory address —D: Memory – Register to memory or memory to register operation School.edhole.com
  • 34. Effects of Pipelining School.edhole.com
  • 35. Optimization of Pipelining • Delayed branch —Does not take effect until after execution of following instruction —This following instruction is the delay slot School.edhole.com
  • 36. Normal and Delayed Branch Address Normal Delayed Optimized 100 LOAD X,A LOAD X,A LOAD X,A 101 ADD 1,A ADD 1,A JUMP 105 102 JUMP 105 JUMP 105 ADD 1,A 103 ADD A,B NOOP ADD A,B 104 SUB C,B ADD A,B SUB C,B 105 STORE A,Z SUB C,B STORE A,Z 106 STORE A,Z School.edhole.com
  • 37. Use of Delayed Branch School.edhole.com
  • 38. Controversy • Quantitative —compare program sizes and execution speeds • Qualitative —examine issues of high level language support and use of VLSI real estate • Problems —No pair of RISC and CISC that are directly comparable —No definitive set of test programs —Difficult to separate hardware effects from complier effects —Most comparisons done on “toy” rather than production machines —Most commercial devices are a mixture School.edhole.com
  • 39. Required Reading • Stallings chapter 13 • Manufacturer web sites School.edhole.com