SlideShare a Scribd company logo
Chapter 1
Computer Abstractions
and Technology
Dr. Nivine Güler
[Adapted from Computer Organization and Design,
Patterson & Hennessy, © 2012, UCB]
Course Textbook and Outline
 Instructor: Dr. Nivine Güler
 Textbook(s):
 Computer Organization and Design: The
Hardware/Software Interface, 4th Edition, David
Patterson and John Hennessy, Morgan Kaufmann.
ISBN: 978-0-12-374493-7, 2012
 Topics covered:
 Computer Abstractions and Technology
 Instructions: Language of the Computer
 Arithmetic for Computers
 The processor
 Exploiting Memory Hierarchy
Grades
 Quizes 30%
 Chap 1, 2, 3
 Date to be announced
 Midterm Exam 30%
 Chap 4, Part of Chap 5
 Date to be announced
 Final 40%
 All material
The Computer Revolution
 Progress in computer technology
 Underpinned by Moore’s Law
 Makes ”science-fiction” applications
feasible
 Computers in automobiles
 Cell phones
 Human genome project
 World Wide Web
 Search Engines
 Computers are pervasive
Chapter
1
—
Computer
Abstractions
and
Technology
Classes of Computers
 Desktop computers
 General purpose, variety of software
 Subject to cost/performance tradeoff
 Server computers
 High capacity, performance, reliability
 Execute programs for multiusers
simultaneously and accessed by network.
 Embedded computers
 Hidden as components inside the systems
such as car, phone, video game, so on
 Designed to run one application integrated
with the hardware, and delivered as a single
system.
Chapter
1
—
Computer
Abstractions
and
Technology
The Processor Market
Chapter
1
—
Computer
Abstractions
and
Technology
What You Will Learn
 How high level language programs, such
as C, are translated into the machine
language
 And how the hardware executes them?
 What is the hardware/software interface
 And how does the software instruct the
hardware to perform needed functions?
 What determines program performance
 And how it can be improved?
Chapter
1
—
Computer
Abstractions
and
Technology
What You Will Learn
 How can hardware designers improve
performance?
 What is parallel processing
 Switching from sequential processing to
parallel processing
Chapter
1
—
Computer
Abstractions
and
Technology
Understanding Performance
 Algorithm
 Determines number of operations executed
 Programming language, compiler, architecture
 Determine number of machine instructions executed
per operation
 Processor and memory system
 Determine how fast instructions are executed
 I/O system (including OS)
 Determines how fast I/O operations are executed
Chapter
1
—
Computer
Abstractions
and
Technology
Below Your Program
 Application software
 Written in high-level language
 System software
 Compiler: translates HLL code to
machine code
 Operating System: service code
 Handling input/output
 Managing memory and storage
 Scheduling tasks & sharing resources
 Hardware
 Processor, memory, I/O controllers
Chapter
1
—
Computer
Abstractions
and
Technology
Levels of Program Code
 High-level language
 Level of abstraction closer
to problem domain
 Provides for productivity
and portability
 Assembly language
 Textual representation of
instructions
 Hardware representation
 Binary digits (bits)
 Encoded instructions and
data
 Ex: 1000110010100000
Just tells the computer to add two numbers
Components of a Computer
 The five important components for all kinds of
computer are: Input, output, memory, datapath,
control( called processor)
 Input/output includes:
 User-interface devices
 Display, keyboard, mouse
 Storage devices
 Hard disk, CD/DVD, flash
 Network adapters
 For communicating with other computers
§1.3
Under
the
Covers
The BIG Picture
Anatomy of a Computer
LCD screen is
Output device
Keyboard
Input device
Mouse Input
device
Network
cable
Inside the Processor (CPU)
 Datapath: The component of the processor
that performs arithmetic operations
 Control: The component of the processor
that commands the datapath, memory, and
I/O devices according to the instructions of
the program
 Cache memory: consists of small and fast
SRAM memory for immediate access to
data
Hard drive
processor
Fan with cover
Spot for
memory DIMMs
Spot for battery Motherboard DVD drive
Inside the Processor
 AMD Barcelona: 4 processor cores
Abstractions
 Abstraction helps us deal with complexity
 Hide lower-level detail
 Instruction set architecture (ISA)
 The hardware/software interface :
encompasses all the information necessary to
write a machine language program
 Application binary interface
 The ISA combined with the system software
interface
 Implementation
 Hardware that obeys the architecture abstraction.
Defining Performance
 Which airplane has the best performance?
0 100 200 300 400 500
Douglas
DC-8-50
BAC/Sud
Concorde
Boeing 747
Boeing 777
Passenger Capacity
0 2000 4000 6000 8000 10000
Douglas DC-
8-50
BAC/Sud
Concorde
Boeing 747
Boeing 777
Cruising Range (miles)
0 500 1000 1500
Douglas
DC-8-50
BAC/Sud
Concorde
Boeing 747
Boeing 777
Cruising Speed (mph)
0 100000 200000 300000 400000
Douglas DC-
8-50
BAC/Sud
Concorde
Boeing 747
Boeing 777
Passengers x mph
§1.4
Performance
Response Time and Throughput
 Response time
 How long it takes to do a task
 Throughput
 Total work done per unit time
 e.g., tasks/transactions/… per hour
 How are response time and throughput affected
by
 Replacing the processor with a faster version?
 Adding more processors?
 We’ll focus on response time for now…
Relative Performance
 Define Performance = 1/Execution Time
 “X is n time faster than Y”
n

 X
Y
Y
X
time
Execution
time
Execution
e
Performanc
e
Performanc
 Example: time taken to run a program
 10s on A, 15s on B
 Execution TimeB / Execution TimeA
= 15s / 10s = 1.5
 So A is 1.5 times faster than B
 Please do the HOMEWORK!
Thank you all

Chapter 1 — Computer Abstractions and Technology — 37

More Related Content

Similar to Chapter_1_Computer_Abstractions_and_Tech.ppt

C with lab
C with labC with lab
C with lab
ParveenSingh73
 
Essential Knowledge of Computers.pptx
Essential Knowledge of Computers.pptxEssential Knowledge of Computers.pptx
Essential Knowledge of Computers.pptx
HODCSE74
 
Evaluation of morden computer & system attributes in ACA
Evaluation of morden computer &  system attributes in ACAEvaluation of morden computer &  system attributes in ACA
Evaluation of morden computer & system attributes in ACA
Pankaj Kumar Jain
 
Linux-Based Data Acquisition and Processing On Palmtop Computer
Linux-Based Data Acquisition and Processing On Palmtop ComputerLinux-Based Data Acquisition and Processing On Palmtop Computer
Linux-Based Data Acquisition and Processing On Palmtop Computer
IOSR Journals
 
Linux-Based Data Acquisition and Processing On Palmtop Computer
Linux-Based Data Acquisition and Processing On Palmtop ComputerLinux-Based Data Acquisition and Processing On Palmtop Computer
Linux-Based Data Acquisition and Processing On Palmtop Computer
IOSR Journals
 
Computer Fundamental
Computer FundamentalComputer Fundamental
Computer Fundamental
JAI MCA-STUDENT
 
L2 ch1
L2  ch1L2  ch1
L2 ch1
Taqsim Rajon
 
Chapter 5 It Architecture
Chapter 5 It ArchitectureChapter 5 It Architecture
Chapter 5 It ArchitectureUMaine
 
ITBIS105 6
ITBIS105 6ITBIS105 6
ITBIS105 6Suad 00
 
Computer Organization and Design
Computer Organization and DesignComputer Organization and Design
Computer Organization and Design
Ra'Fat Al-Msie'deen
 
Introduction To Computer and Java
Introduction To Computer and JavaIntroduction To Computer and Java
Introduction To Computer and Java
PRN USM
 
Csphtp1 01
Csphtp1 01Csphtp1 01
Csphtp1 01
HUST
 
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdfAERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
ssuserb3a23b
 
Lec no. 4 hardware and software basic
Lec no. 4 hardware and software basicLec no. 4 hardware and software basic
Lec no. 4 hardware and software basicJiian Francisco
 
Operating system-1
Operating system-1Operating system-1
Operating system-1
jayalakshmi268
 
Documentation
DocumentationDocumentation
Documentation
Rajesh Seendripu
 
C LECTURE NOTES FULL_1.pdf
C LECTURE NOTES FULL_1.pdfC LECTURE NOTES FULL_1.pdf
C LECTURE NOTES FULL_1.pdf
Priyanka542143
 

Similar to Chapter_1_Computer_Abstractions_and_Tech.ppt (20)

C with lab
C with labC with lab
C with lab
 
Essential Knowledge of Computers.pptx
Essential Knowledge of Computers.pptxEssential Knowledge of Computers.pptx
Essential Knowledge of Computers.pptx
 
Evaluation of morden computer & system attributes in ACA
Evaluation of morden computer &  system attributes in ACAEvaluation of morden computer &  system attributes in ACA
Evaluation of morden computer & system attributes in ACA
 
Linux-Based Data Acquisition and Processing On Palmtop Computer
Linux-Based Data Acquisition and Processing On Palmtop ComputerLinux-Based Data Acquisition and Processing On Palmtop Computer
Linux-Based Data Acquisition and Processing On Palmtop Computer
 
Linux-Based Data Acquisition and Processing On Palmtop Computer
Linux-Based Data Acquisition and Processing On Palmtop ComputerLinux-Based Data Acquisition and Processing On Palmtop Computer
Linux-Based Data Acquisition and Processing On Palmtop Computer
 
Chapter 2(answer)2
Chapter 2(answer)2Chapter 2(answer)2
Chapter 2(answer)2
 
Computer Fundamental
Computer FundamentalComputer Fundamental
Computer Fundamental
 
L2 ch1
L2  ch1L2  ch1
L2 ch1
 
Chapter 5 It Architecture
Chapter 5 It ArchitectureChapter 5 It Architecture
Chapter 5 It Architecture
 
ITBIS105 6
ITBIS105 6ITBIS105 6
ITBIS105 6
 
Computer Organization and Design
Computer Organization and DesignComputer Organization and Design
Computer Organization and Design
 
01 intro to vb-net
01 intro to vb-net01 intro to vb-net
01 intro to vb-net
 
Introduction To Computer and Java
Introduction To Computer and JavaIntroduction To Computer and Java
Introduction To Computer and Java
 
Csphtp1 01
Csphtp1 01Csphtp1 01
Csphtp1 01
 
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdfAERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
 
Lec no. 4 hardware and software basic
Lec no. 4 hardware and software basicLec no. 4 hardware and software basic
Lec no. 4 hardware and software basic
 
Operating system-1
Operating system-1Operating system-1
Operating system-1
 
Documentation
DocumentationDocumentation
Documentation
 
Information technology
Information technologyInformation technology
Information technology
 
C LECTURE NOTES FULL_1.pdf
C LECTURE NOTES FULL_1.pdfC LECTURE NOTES FULL_1.pdf
C LECTURE NOTES FULL_1.pdf
 

Recently uploaded

Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 

Recently uploaded (20)

Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 

Chapter_1_Computer_Abstractions_and_Tech.ppt

  • 1. Chapter 1 Computer Abstractions and Technology Dr. Nivine Güler [Adapted from Computer Organization and Design, Patterson & Hennessy, © 2012, UCB]
  • 2. Course Textbook and Outline  Instructor: Dr. Nivine Güler  Textbook(s):  Computer Organization and Design: The Hardware/Software Interface, 4th Edition, David Patterson and John Hennessy, Morgan Kaufmann. ISBN: 978-0-12-374493-7, 2012  Topics covered:  Computer Abstractions and Technology  Instructions: Language of the Computer  Arithmetic for Computers  The processor  Exploiting Memory Hierarchy
  • 3. Grades  Quizes 30%  Chap 1, 2, 3  Date to be announced  Midterm Exam 30%  Chap 4, Part of Chap 5  Date to be announced  Final 40%  All material
  • 4. The Computer Revolution  Progress in computer technology  Underpinned by Moore’s Law  Makes ”science-fiction” applications feasible  Computers in automobiles  Cell phones  Human genome project  World Wide Web  Search Engines  Computers are pervasive Chapter 1 — Computer Abstractions and Technology
  • 5. Classes of Computers  Desktop computers  General purpose, variety of software  Subject to cost/performance tradeoff  Server computers  High capacity, performance, reliability  Execute programs for multiusers simultaneously and accessed by network.  Embedded computers  Hidden as components inside the systems such as car, phone, video game, so on  Designed to run one application integrated with the hardware, and delivered as a single system. Chapter 1 — Computer Abstractions and Technology
  • 7. What You Will Learn  How high level language programs, such as C, are translated into the machine language  And how the hardware executes them?  What is the hardware/software interface  And how does the software instruct the hardware to perform needed functions?  What determines program performance  And how it can be improved? Chapter 1 — Computer Abstractions and Technology
  • 8. What You Will Learn  How can hardware designers improve performance?  What is parallel processing  Switching from sequential processing to parallel processing Chapter 1 — Computer Abstractions and Technology
  • 9. Understanding Performance  Algorithm  Determines number of operations executed  Programming language, compiler, architecture  Determine number of machine instructions executed per operation  Processor and memory system  Determine how fast instructions are executed  I/O system (including OS)  Determines how fast I/O operations are executed Chapter 1 — Computer Abstractions and Technology
  • 10. Below Your Program  Application software  Written in high-level language  System software  Compiler: translates HLL code to machine code  Operating System: service code  Handling input/output  Managing memory and storage  Scheduling tasks & sharing resources  Hardware  Processor, memory, I/O controllers Chapter 1 — Computer Abstractions and Technology
  • 11. Levels of Program Code  High-level language  Level of abstraction closer to problem domain  Provides for productivity and portability  Assembly language  Textual representation of instructions  Hardware representation  Binary digits (bits)  Encoded instructions and data  Ex: 1000110010100000 Just tells the computer to add two numbers
  • 12. Components of a Computer  The five important components for all kinds of computer are: Input, output, memory, datapath, control( called processor)  Input/output includes:  User-interface devices  Display, keyboard, mouse  Storage devices  Hard disk, CD/DVD, flash  Network adapters  For communicating with other computers §1.3 Under the Covers The BIG Picture
  • 13. Anatomy of a Computer LCD screen is Output device Keyboard Input device Mouse Input device Network cable
  • 14. Inside the Processor (CPU)  Datapath: The component of the processor that performs arithmetic operations  Control: The component of the processor that commands the datapath, memory, and I/O devices according to the instructions of the program  Cache memory: consists of small and fast SRAM memory for immediate access to data
  • 15. Hard drive processor Fan with cover Spot for memory DIMMs Spot for battery Motherboard DVD drive
  • 16. Inside the Processor  AMD Barcelona: 4 processor cores
  • 17. Abstractions  Abstraction helps us deal with complexity  Hide lower-level detail  Instruction set architecture (ISA)  The hardware/software interface : encompasses all the information necessary to write a machine language program  Application binary interface  The ISA combined with the system software interface  Implementation  Hardware that obeys the architecture abstraction.
  • 18. Defining Performance  Which airplane has the best performance? 0 100 200 300 400 500 Douglas DC-8-50 BAC/Sud Concorde Boeing 747 Boeing 777 Passenger Capacity 0 2000 4000 6000 8000 10000 Douglas DC- 8-50 BAC/Sud Concorde Boeing 747 Boeing 777 Cruising Range (miles) 0 500 1000 1500 Douglas DC-8-50 BAC/Sud Concorde Boeing 747 Boeing 777 Cruising Speed (mph) 0 100000 200000 300000 400000 Douglas DC- 8-50 BAC/Sud Concorde Boeing 747 Boeing 777 Passengers x mph §1.4 Performance
  • 19. Response Time and Throughput  Response time  How long it takes to do a task  Throughput  Total work done per unit time  e.g., tasks/transactions/… per hour  How are response time and throughput affected by  Replacing the processor with a faster version?  Adding more processors?  We’ll focus on response time for now…
  • 20. Relative Performance  Define Performance = 1/Execution Time  “X is n time faster than Y” n   X Y Y X time Execution time Execution e Performanc e Performanc  Example: time taken to run a program  10s on A, 15s on B  Execution TimeB / Execution TimeA = 15s / 10s = 1.5  So A is 1.5 times faster than B
  • 21.  Please do the HOMEWORK! Thank you all  Chapter 1 — Computer Abstractions and Technology — 37

Editor's Notes

  1. March 2, 2023
  2. March 2, 2023
  3. March 2, 2023
  4. March 2, 2023
  5. March 2, 2023
  6. March 2, 2023
  7. March 2, 2023
  8. March 2, 2023
  9. March 2, 2023
  10. March 2, 2023
  11. March 2, 2023
  12. March 2, 2023
  13. dual inline memory module (DIMM) A small board that contains DRAM chips on both sides. The microprocessor in the laptop in Figure 1.7 has two cores per chip, called an Intel Core 2 Duo
  14. March 2, 2023
  15. March 2, 2023
  16. March 2, 2023
  17. March 2, 2023
  18. March 2, 2023
  19. March 2, 2023
  20. March 2, 2023
  21. March 2, 2023
  22. March 2, 2023
  23. March 2, 2023
  24. March 2, 2023
  25. March 2, 2023
  26. March 2, 2023
  27. March 2, 2023
  28. March 2, 2023
  29. March 2, 2023
  30. March 2, 2023
  31. March 2, 2023
  32. March 2, 2023
  33. March 2, 2023
  34. March 2, 2023