Download presentation
Presentation is loading. Please wait.
Published byBrook Williams Modified over 9 years ago
1
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li
2
Review Last Class Syllabus Moore’s Law Classes of Computers Decimal, Binary, Octal, Hexadecimal Representations This Class Program and Computer Compiler, Assembler, and Linker Components of a Computer Next Class Quiz Computer Performance
3
Understanding Computer 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
4
Below Your Program Application software Written in high-level language System software Compiler: translates High Level Language 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 §1.2 Below Your Program
5
Levels of Program Code High-level language Level of abstraction closer to problem domain Provides for productivity and portability Assembly language Symbolic representation of instructions Hardware representation Binary digits (bits) Encoded instructions and data
6
Compiler Function of Compiler Convert programs in high-level language to programs in assembly language
7
Example: C Compiler C program Assembly Program
8
Assembler Translates assembly language into binary instructions Assembly Language Use symbols instead of 0’s and 1’s More readable
9
Binary Instructions MIPS binary code for summing 0 to 100 square
10
Linker Separate Compilation Allows a program to be split into pieces that are stored in different files Each file contains a logically related collection of subroutines and data structures that form a module Can be compiled separately Can be reused Linker Merge Modules together
11
Functions of a Linker
12
Tasks of a Linker Search the program libraries to find library routines used by the program Determine the memory locations that code from each module will occupy and relocates its instructions by adjusting absolute references Resolves references among modules Matching references
13
Relationship Among Compiler, Assembler, and Linker
14
Example: gcc compiler Compile a simple program gcc –v test.c
15
Components of a Computer Same components for all kinds of computer Desktop, server, embedded 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
16
Anatomy of a Computer Output device Input device Network cable
17
Anatomy of a Mouse Optical mouse LED illuminates desktop Small low-res camera Basic image processor Looks for x, y movement Buttons & wheel Supersedes roller-ball mechanical mouse
18
Through the Looking Glass LCD screen: picture elements (pixels) Mirrors content of frame buffer memory
19
Opening the Box
20
Inside the Processor (CPU) Datapath: performs operations on data Control: sequences datapath, memory,... Cache memory Small fast SRAM memory for immediate access to data
21
Inside the Processor AMD Barcelona: 4 processor cores
22
Abstractions Abstraction helps us deal with complexity Hide lower-level detail Instruction set architecture (ISA) The hardware/software interface Application binary interface The ISA plus system software interface Implementation The details underlying and interface The BIG Picture
23
A Safe Place for Data Volatile main memory Loses instructions and data when power off Non-volatile secondary memory Magnetic disk Flash memory Optical disk (CDROM, DVD)
24
Networks Communication and resource sharing Local area network (LAN): Ethernet Within a building Wide area network (WAN: the Internet) Wireless network: WiFi, Bluetooth
25
Technology Trends Electronics technology continues to evolve Increased capacity and performance Reduced cost DRAM capacity
26
Summary Performance of a Computer Compiler Assembler Linker Components of a Computer
27
What I want you to do Review Chapter 1 Prepare for your first Quiz
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.