SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
The role of the CPU in the
     operation of software
                 Mary Ramsay
Fetch and Execute Cycle
instruction and decoding of software solutions
Fetch-Execute Cycle:- describes the manner in which
the processor works. That is, it fetches the instruction
from primary storage, decodes the instruction, executes
the instruction and stores the result.
The CPU is made up of different parts including:
ALU – performs the arithmetic and logical operations
carried out by the processor.
Registers – (memories) which provides areas to store
results, locations of instructions. An Accumulator is one
register which stores the data currently being processed.
(like the display of a calculator)
Control unit – This coordinates all the actions of the
processor.
Specific CPU components – Program
counter
 Is a type of register that stores the location of the next instruction to be processed.

 The program counter is just like a counter used in an array.

 (used to located an array element)

 The program counter is used to locate the next the instruction and then the counter is
 increased (incremented) to point to the next instruction. See page 149 of text book.
Linking

When	
  a	
  program	
  requires	
  a	
  par0cular	
  sub	
  program,	
  its	
  address	
  is	
  incorporated	
  
into	
  the	
  program	
  by	
  a	
  transla'on	
  system	
  called	
  a	
  linker.	
  	
  
Many	
  programs	
  are	
  complied	
  at	
  a	
  modular	
  level	
  (mainline)	
  and	
  sub	
  modules.	
  A	
  
linker	
  is	
  used	
  to	
  join	
  these	
  compiled	
  modules	
  together.	
  A	
  linker	
  is	
  like	
  calling	
  a	
  
module	
  that	
  needs	
  to	
  be	
  processed	
  by	
  the	
  CPU.	
  
For	
  example	
  	
  
          1.      A	
  program	
  is	
  complied	
  and	
  translated	
  into	
  machine	
  code	
  (exe)	
  
          2.      The	
  machine	
  code	
  is	
  loaded	
  into	
  main	
  memory	
  to	
  be	
  executed.	
  
          3.      The	
  mainline	
  is	
  executed	
  first	
  –	
  with	
  the	
  use	
  of	
  a	
  linker	
  only	
  the	
  modules	
  required	
  are	
  loaded	
  
                  into	
  RAM.	
  (This	
  reduces	
  the	
  amount	
  of	
  instruc0ons	
  loaded	
  into	
  RAM	
  at	
  one	
  0me)	
  	
  
          4.      The	
  linker	
  also	
  used	
  for	
  library	
  rou0nes.	
  If	
  the	
  program	
  calls	
  a	
  library	
  rou0ne	
  it	
  is	
  only	
  called	
  
                  and	
  loaded	
  into	
  main	
  memory	
  when	
  required.	
  Again	
  this	
  saves	
  memory	
  resources.	
  
DLL’s (Dynamic Linking Libraries
  Is	
  a	
  collec0on	
  of	
  programs	
  in	
  machine	
  code	
  which	
  can	
  be	
  accessed	
  by	
  other	
  
  programs	
  to	
  perform	
  a	
  specific	
  task.	
  	
  

  	
  

  E.g	
  prin0ng	
  –	
  when	
  a	
  user	
  chooses	
  to	
  print	
  the	
  CPU	
  will	
  look	
  in	
  the	
  DLL	
  file	
  to	
  get	
  
  the	
  saved	
  machine	
  code	
  (instruc0ons)	
  to	
  print	
  rather	
  than	
  searching	
  the	
  
  translated	
  code.	
  

  	
  

  The	
  DLL	
  file	
  is	
  loaded	
  into	
  RAM	
  instead.	
  As	
  a	
  result	
  processing	
  and	
  RAM	
  
  resources	
  are	
  minimsed.	
  
Translation methods in software solutions
Advantages of a compiler
}    Compiled	
  programs	
  will	
  run	
  faster	
  than	
  those	
  that	
  have	
  been	
  interpreted	
  
      as	
  they	
  are	
  already	
  in	
  a	
  form	
  that	
  the	
  processor	
  understands.	
  

}    Compiled	
  programs	
  hide	
  the	
  code	
  from	
  view	
  so	
  that	
  it	
  is	
  more	
  difficult	
  to	
  
      determine	
  the	
  algorithms	
  used.	
  

}    A	
  compiled	
  program	
  is	
  oTen	
  a	
  lot	
  smaller	
  that	
  the	
  high-­‐level	
  code	
  that	
  
      generated	
  it.	
  

}    A	
  compiled	
  program	
  cannot	
  be	
  easily	
  modified	
  by	
  an	
  inexperienced	
  user.	
  
Disadvantages of a compiler
}    Run-­‐0me	
  errors	
  are	
  not	
  apparent	
  un0l	
  the	
  program	
  has	
  been	
  completely	
  
      compiled.	
  

}    When	
  a	
  compiled	
  program	
  is	
  modified,	
  the	
  whole	
  of	
  the	
  program	
  has	
  to	
  be	
  
      re-­‐compiled,	
  regardless	
  of	
  the	
  nature	
  of	
  the	
  modifica0on.	
  Even	
  if	
  a	
  minor	
  
      modifica0on	
  is	
  made,	
  the	
  whole	
  program	
  has	
  to	
  be	
  re-­‐compiled.	
  This	
  can	
  
      make	
  the	
  tes0ng	
  process	
  tedious.	
  
Advantages of an interpreter
}  • During testing, both run-time and translation errors
    become apparent as the code is
}  being executed. These errors may then be corrected as
    they are found. This allows the
}  programmer to more quickly debug a program, as the
    code does not need to be
}  completely translated after the changes have been made.
}  • The process of interpretation also allows the
    programmer to quickly add and remove
}  debugging aids such as flags and debugging output
    statements.
}  Disadvantages of an interpreter
}  • Programs that are interpreted will run far more slowly
    than those that have been
}  compiled, as each line of code has to be translated before
    it is executed.
}  • The code of an interpreted program is easily accessible
    to any user or other programmer.
}  This means that the illegal use of modules is easier.
}  • Programs that are interpreted will generally take up
    more storage than a similar program
}  that has been compiled.
Advantage	
  of	
  an	
  incremental	
  compiler
}    Programs	
  will	
  run	
  faster	
  than	
  those	
  of	
  an	
  interpreter;	
  
      however,	
  the	
  incremental	
  compiler	
  retains	
  the	
  advantage	
  
      for	
  a	
  programmer	
  that	
  both	
  run-­‐0me	
  and	
  syntax	
  errors	
  
      can	
  be	
  iden0fied	
  as	
  they	
  are	
  reached.	
  
	
  
Disadvantages	
  of	
  an	
  incremental	
  compiler	
  
}  Programs	
  are	
  not	
  executed	
  as	
  quickly	
  as	
  for	
  a	
  compiled	
  
     program.	
  
}  Code	
  is	
  s0ll	
  accessible	
  to	
  users	
  and	
  others.	
  

Weitere ähnliche Inhalte

Was ist angesagt?

Lesson 6 the cooling system
Lesson 6 the cooling systemLesson 6 the cooling system
Lesson 6 the cooling systemcrawfordsauto
 
Presentation:COMBUSTION CHAMBER
Presentation:COMBUSTION CHAMBERPresentation:COMBUSTION CHAMBER
Presentation:COMBUSTION CHAMBERabsalar
 
Engine lubrication basics
Engine lubrication basicsEngine lubrication basics
Engine lubrication basicsPINAKI ROY
 
Dynamically define rad grid using code behind in c# grid - ui for asp
Dynamically define rad grid using code behind in c#   grid - ui for aspDynamically define rad grid using code behind in c#   grid - ui for asp
Dynamically define rad grid using code behind in c# grid - ui for aspAravindharamanan S
 
Angular VS React The Battle of Best Front End Frameworks.pdf
Angular VS React The Battle of Best Front End Frameworks.pdfAngular VS React The Battle of Best Front End Frameworks.pdf
Angular VS React The Battle of Best Front End Frameworks.pdfJS Panther Pvt. Ltd.
 
Six stroke engine(presentation)
Six stroke engine(presentation)Six stroke engine(presentation)
Six stroke engine(presentation)Prateekvin
 
End to end test automation with cypress
End to end test automation with cypressEnd to end test automation with cypress
End to end test automation with cypressPankajSingh184960
 
AEM 6.1 User Interface Customization
AEM 6.1 User Interface CustomizationAEM 6.1 User Interface Customization
AEM 6.1 User Interface CustomizationChristian Meyer
 
Lubrication system
Lubrication systemLubrication system
Lubrication systembadarinp
 
UDA-Componentes RUP. Validación
UDA-Componentes RUP. ValidaciónUDA-Componentes RUP. Validación
UDA-Componentes RUP. ValidaciónAnder Martinez
 

Was ist angesagt? (20)

Lesson 6 the cooling system
Lesson 6 the cooling systemLesson 6 the cooling system
Lesson 6 the cooling system
 
AngularJS
AngularJSAngularJS
AngularJS
 
Presentation:COMBUSTION CHAMBER
Presentation:COMBUSTION CHAMBERPresentation:COMBUSTION CHAMBER
Presentation:COMBUSTION CHAMBER
 
Six-Stroke Engine
Six-Stroke Engine Six-Stroke Engine
Six-Stroke Engine
 
Data race
Data raceData race
Data race
 
Carburetors types
Carburetors typesCarburetors types
Carburetors types
 
Angular
AngularAngular
Angular
 
Engine lubrication basics
Engine lubrication basicsEngine lubrication basics
Engine lubrication basics
 
Dynamically define rad grid using code behind in c# grid - ui for asp
Dynamically define rad grid using code behind in c#   grid - ui for aspDynamically define rad grid using code behind in c#   grid - ui for asp
Dynamically define rad grid using code behind in c# grid - ui for asp
 
Introdução Vue JS
Introdução Vue JSIntrodução Vue JS
Introdução Vue JS
 
Angular VS React The Battle of Best Front End Frameworks.pdf
Angular VS React The Battle of Best Front End Frameworks.pdfAngular VS React The Battle of Best Front End Frameworks.pdf
Angular VS React The Battle of Best Front End Frameworks.pdf
 
Six stroke engine(presentation)
Six stroke engine(presentation)Six stroke engine(presentation)
Six stroke engine(presentation)
 
End to end test automation with cypress
End to end test automation with cypressEnd to end test automation with cypress
End to end test automation with cypress
 
Flutter for web
Flutter for webFlutter for web
Flutter for web
 
React for Beginners
React for BeginnersReact for Beginners
React for Beginners
 
AEM 6.1 User Interface Customization
AEM 6.1 User Interface CustomizationAEM 6.1 User Interface Customization
AEM 6.1 User Interface Customization
 
Apresentação angular js
Apresentação angular jsApresentação angular js
Apresentação angular js
 
Lubrication system
Lubrication systemLubrication system
Lubrication system
 
UDA-Componentes RUP. Validación
UDA-Componentes RUP. ValidaciónUDA-Componentes RUP. Validación
UDA-Componentes RUP. Validación
 
An Overview on Nuxt.js
An Overview on Nuxt.jsAn Overview on Nuxt.js
An Overview on Nuxt.js
 

Andere mochten auch

Sdd Testing & Evaluating
Sdd Testing & EvaluatingSdd Testing & Evaluating
Sdd Testing & Evaluatingmary_ramsay
 
6 multimedia elements - www
6   multimedia elements - www6   multimedia elements - www
6 multimedia elements - wwwKelly Bauer
 
Error Correction Techniques
Error Correction TechniquesError Correction Techniques
Error Correction TechniquesKelly Bauer
 
Maintaining Code
Maintaining CodeMaintaining Code
Maintaining CodeKelly Bauer
 
Meta Languages Railroad Diagrams
Meta Languages Railroad DiagramsMeta Languages Railroad Diagrams
Meta Languages Railroad DiagramsKelly Bauer
 
Circumference of a Circle
Circumference of a CircleCircumference of a Circle
Circumference of a Circlemary_ramsay
 
2008 Exam Questions Social And Ethical
2008 Exam Questions Social And Ethical2008 Exam Questions Social And Ethical
2008 Exam Questions Social And EthicalKelly Bauer
 
Algorithms Vs Meta Language
Algorithms Vs Meta LanguageAlgorithms Vs Meta Language
Algorithms Vs Meta LanguageKelly Bauer
 
Desk Chekcing Algorithms
Desk Chekcing AlgorithmsDesk Chekcing Algorithms
Desk Chekcing AlgorithmsKelly Bauer
 
User Interaction Design
User Interaction DesignUser Interaction Design
User Interaction DesignKelly Bauer
 
5 multimedia elements - animation
5   multimedia elements - animation5   multimedia elements - animation
5 multimedia elements - animationKelly Bauer
 
Stem 71 24 multimedia elements - graphics
Stem 71 24   multimedia elements - graphicsStem 71 24   multimedia elements - graphics
Stem 71 24 multimedia elements - graphicsKelly Bauer
 
3 multimedia elements - audio
3   multimedia elements - audio3   multimedia elements - audio
3 multimedia elements - audioKelly Bauer
 
Cmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartsCmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartskapil078
 

Andere mochten auch (15)

Sdd Testing & Evaluating
Sdd Testing & EvaluatingSdd Testing & Evaluating
Sdd Testing & Evaluating
 
6 multimedia elements - www
6   multimedia elements - www6   multimedia elements - www
6 multimedia elements - www
 
Error Correction Techniques
Error Correction TechniquesError Correction Techniques
Error Correction Techniques
 
Maintaining Code
Maintaining CodeMaintaining Code
Maintaining Code
 
Meta Languages Railroad Diagrams
Meta Languages Railroad DiagramsMeta Languages Railroad Diagrams
Meta Languages Railroad Diagrams
 
Cmyk vs rgb
Cmyk vs rgbCmyk vs rgb
Cmyk vs rgb
 
Circumference of a Circle
Circumference of a CircleCircumference of a Circle
Circumference of a Circle
 
2008 Exam Questions Social And Ethical
2008 Exam Questions Social And Ethical2008 Exam Questions Social And Ethical
2008 Exam Questions Social And Ethical
 
Algorithms Vs Meta Language
Algorithms Vs Meta LanguageAlgorithms Vs Meta Language
Algorithms Vs Meta Language
 
Desk Chekcing Algorithms
Desk Chekcing AlgorithmsDesk Chekcing Algorithms
Desk Chekcing Algorithms
 
User Interaction Design
User Interaction DesignUser Interaction Design
User Interaction Design
 
5 multimedia elements - animation
5   multimedia elements - animation5   multimedia elements - animation
5 multimedia elements - animation
 
Stem 71 24 multimedia elements - graphics
Stem 71 24   multimedia elements - graphicsStem 71 24   multimedia elements - graphics
Stem 71 24 multimedia elements - graphics
 
3 multimedia elements - audio
3   multimedia elements - audio3   multimedia elements - audio
3 multimedia elements - audio
 
Cmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowchartsCmp104 lec 7 algorithm and flowcharts
Cmp104 lec 7 algorithm and flowcharts
 

Ähnlich wie The role of the cpu in the operation

PCSG_Computer_Science_Unit_1_Lecture_2.pptx
PCSG_Computer_Science_Unit_1_Lecture_2.pptxPCSG_Computer_Science_Unit_1_Lecture_2.pptx
PCSG_Computer_Science_Unit_1_Lecture_2.pptxAliyahAli19
 
Hm system programming class 1
Hm system programming class 1Hm system programming class 1
Hm system programming class 1Hitesh Mohapatra
 
The Role Of The Cpu
The Role Of The CpuThe Role Of The Cpu
The Role Of The Cpugavhays
 
C program execution and algorithm
C program execution and algorithm C program execution and algorithm
C program execution and algorithm Kunal Pandhram
 
Computer software and operating system
Computer software and operating systemComputer software and operating system
Computer software and operating systemsonykhan3
 
Steps for c program execution
Steps for c program executionSteps for c program execution
Steps for c program executionRumman Ansari
 
system prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfsystem prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfSATHYABAMAMADHANKUMA
 
EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM Sahil Garg
 
Neethu Narayanan- Operating System
 Neethu Narayanan- Operating System Neethu Narayanan- Operating System
Neethu Narayanan- Operating System19940213
 
Loaders ( system programming )
Loaders ( system programming ) Loaders ( system programming )
Loaders ( system programming ) Adarsh Patel
 
SPCC:System programming and compiler construction
SPCC:System programming and compiler constructionSPCC:System programming and compiler construction
SPCC:System programming and compiler constructionmohdumaira1
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdfRakibRahman19
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution pptKeerty Smile
 
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)SURBHI SAROHA
 

Ähnlich wie The role of the cpu in the operation (20)

Spr ch-01
Spr ch-01Spr ch-01
Spr ch-01
 
PCSG_Computer_Science_Unit_1_Lecture_2.pptx
PCSG_Computer_Science_Unit_1_Lecture_2.pptxPCSG_Computer_Science_Unit_1_Lecture_2.pptx
PCSG_Computer_Science_Unit_1_Lecture_2.pptx
 
Hm system programming class 1
Hm system programming class 1Hm system programming class 1
Hm system programming class 1
 
The Role Of The Cpu
The Role Of The CpuThe Role Of The Cpu
The Role Of The Cpu
 
Running a Program.pdf
Running a Program.pdfRunning a Program.pdf
Running a Program.pdf
 
C program execution and algorithm
C program execution and algorithm C program execution and algorithm
C program execution and algorithm
 
Computer software and operating system
Computer software and operating systemComputer software and operating system
Computer software and operating system
 
Steps for c program execution
Steps for c program executionSteps for c program execution
Steps for c program execution
 
system prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdfsystem prgramming - loaders-linkers.pdf
system prgramming - loaders-linkers.pdf
 
EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM EVOLUTION OF SYSTEM
EVOLUTION OF SYSTEM
 
Computer Software
Computer SoftwareComputer Software
Computer Software
 
Neethu Narayanan- Operating System
 Neethu Narayanan- Operating System Neethu Narayanan- Operating System
Neethu Narayanan- Operating System
 
Loaders ( system programming )
Loaders ( system programming ) Loaders ( system programming )
Loaders ( system programming )
 
SPCC:System programming and compiler construction
SPCC:System programming and compiler constructionSPCC:System programming and compiler construction
SPCC:System programming and compiler construction
 
Richa garg itm
Richa garg itmRicha garg itm
Richa garg itm
 
Language processing system.pdf
Language processing system.pdfLanguage processing system.pdf
Language processing system.pdf
 
Chap 2_ans.pdf
Chap 2_ans.pdfChap 2_ans.pdf
Chap 2_ans.pdf
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
 
Reconfigurable computing
Reconfigurable computingReconfigurable computing
Reconfigurable computing
 
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
 

Mehr von mary_ramsay

RWG 5 For Mac Training Guide
RWG 5 For Mac Training GuideRWG 5 For Mac Training Guide
RWG 5 For Mac Training Guidemary_ramsay
 
All meta languages
All meta languagesAll meta languages
All meta languagesmary_ramsay
 
Sdd metalanguage
Sdd metalanguageSdd metalanguage
Sdd metalanguagemary_ramsay
 
Sorting & Extracting Data
Sorting & Extracting DataSorting & Extracting Data
Sorting & Extracting Datamary_ramsay
 
SQL Structure Query Language
SQL Structure Query LanguageSQL Structure Query Language
SQL Structure Query Languagemary_ramsay
 
URL_universal Resourse Locator
URL_universal Resourse LocatorURL_universal Resourse Locator
URL_universal Resourse Locatormary_ramsay
 
IPT Assessment Schedule 2012
IPT Assessment Schedule 2012IPT Assessment Schedule 2012
IPT Assessment Schedule 2012mary_ramsay
 
Normalisation student summary
Normalisation student summaryNormalisation student summary
Normalisation student summarymary_ramsay
 

Mehr von mary_ramsay (10)

RWG 5 For Mac Training Guide
RWG 5 For Mac Training GuideRWG 5 For Mac Training Guide
RWG 5 For Mac Training Guide
 
Sdd HSC Summary
Sdd HSC SummarySdd HSC Summary
Sdd HSC Summary
 
All meta languages
All meta languagesAll meta languages
All meta languages
 
Sdd metalanguage
Sdd metalanguageSdd metalanguage
Sdd metalanguage
 
Sorting & Extracting Data
Sorting & Extracting DataSorting & Extracting Data
Sorting & Extracting Data
 
SQL Structure Query Language
SQL Structure Query LanguageSQL Structure Query Language
SQL Structure Query Language
 
URL_universal Resourse Locator
URL_universal Resourse LocatorURL_universal Resourse Locator
URL_universal Resourse Locator
 
IPT Assessment Schedule 2012
IPT Assessment Schedule 2012IPT Assessment Schedule 2012
IPT Assessment Schedule 2012
 
IPT HSC Summary
IPT HSC SummaryIPT HSC Summary
IPT HSC Summary
 
Normalisation student summary
Normalisation student summaryNormalisation student summary
Normalisation student summary
 

Kürzlich hochgeladen

Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 

Kürzlich hochgeladen (20)

Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

The role of the cpu in the operation

  • 1. The role of the CPU in the operation of software Mary Ramsay
  • 2. Fetch and Execute Cycle instruction and decoding of software solutions
  • 3. Fetch-Execute Cycle:- describes the manner in which the processor works. That is, it fetches the instruction from primary storage, decodes the instruction, executes the instruction and stores the result.
  • 4. The CPU is made up of different parts including: ALU – performs the arithmetic and logical operations carried out by the processor. Registers – (memories) which provides areas to store results, locations of instructions. An Accumulator is one register which stores the data currently being processed. (like the display of a calculator) Control unit – This coordinates all the actions of the processor.
  • 5.
  • 6. Specific CPU components – Program counter Is a type of register that stores the location of the next instruction to be processed. The program counter is just like a counter used in an array. (used to located an array element) The program counter is used to locate the next the instruction and then the counter is increased (incremented) to point to the next instruction. See page 149 of text book.
  • 7. Linking When  a  program  requires  a  par0cular  sub  program,  its  address  is  incorporated   into  the  program  by  a  transla'on  system  called  a  linker.     Many  programs  are  complied  at  a  modular  level  (mainline)  and  sub  modules.  A   linker  is  used  to  join  these  compiled  modules  together.  A  linker  is  like  calling  a   module  that  needs  to  be  processed  by  the  CPU.   For  example     1.  A  program  is  complied  and  translated  into  machine  code  (exe)   2.  The  machine  code  is  loaded  into  main  memory  to  be  executed.   3.  The  mainline  is  executed  first  –  with  the  use  of  a  linker  only  the  modules  required  are  loaded   into  RAM.  (This  reduces  the  amount  of  instruc0ons  loaded  into  RAM  at  one  0me)     4.  The  linker  also  used  for  library  rou0nes.  If  the  program  calls  a  library  rou0ne  it  is  only  called   and  loaded  into  main  memory  when  required.  Again  this  saves  memory  resources.  
  • 8. DLL’s (Dynamic Linking Libraries Is  a  collec0on  of  programs  in  machine  code  which  can  be  accessed  by  other   programs  to  perform  a  specific  task.       E.g  prin0ng  –  when  a  user  chooses  to  print  the  CPU  will  look  in  the  DLL  file  to  get   the  saved  machine  code  (instruc0ons)  to  print  rather  than  searching  the   translated  code.     The  DLL  file  is  loaded  into  RAM  instead.  As  a  result  processing  and  RAM   resources  are  minimsed.  
  • 9. Translation methods in software solutions
  • 10. Advantages of a compiler }  Compiled  programs  will  run  faster  than  those  that  have  been  interpreted   as  they  are  already  in  a  form  that  the  processor  understands.   }  Compiled  programs  hide  the  code  from  view  so  that  it  is  more  difficult  to   determine  the  algorithms  used.   }  A  compiled  program  is  oTen  a  lot  smaller  that  the  high-­‐level  code  that   generated  it.   }  A  compiled  program  cannot  be  easily  modified  by  an  inexperienced  user.  
  • 11. Disadvantages of a compiler }  Run-­‐0me  errors  are  not  apparent  un0l  the  program  has  been  completely   compiled.   }  When  a  compiled  program  is  modified,  the  whole  of  the  program  has  to  be   re-­‐compiled,  regardless  of  the  nature  of  the  modifica0on.  Even  if  a  minor   modifica0on  is  made,  the  whole  program  has  to  be  re-­‐compiled.  This  can   make  the  tes0ng  process  tedious.  
  • 12. Advantages of an interpreter }  • During testing, both run-time and translation errors become apparent as the code is }  being executed. These errors may then be corrected as they are found. This allows the }  programmer to more quickly debug a program, as the code does not need to be }  completely translated after the changes have been made. }  • The process of interpretation also allows the programmer to quickly add and remove }  debugging aids such as flags and debugging output statements.
  • 13. }  Disadvantages of an interpreter }  • Programs that are interpreted will run far more slowly than those that have been }  compiled, as each line of code has to be translated before it is executed. }  • The code of an interpreted program is easily accessible to any user or other programmer. }  This means that the illegal use of modules is easier. }  • Programs that are interpreted will generally take up more storage than a similar program }  that has been compiled.
  • 14. Advantage  of  an  incremental  compiler }  Programs  will  run  faster  than  those  of  an  interpreter;   however,  the  incremental  compiler  retains  the  advantage   for  a  programmer  that  both  run-­‐0me  and  syntax  errors   can  be  iden0fied  as  they  are  reached.     Disadvantages  of  an  incremental  compiler   }  Programs  are  not  executed  as  quickly  as  for  a  compiled   program.   }  Code  is  s0ll  accessible  to  users  and  others.