January 11 - PowerPoint PPT Presentation

About This Presentation
Title:

January 11

Description:

Title: Abstraction: C to ASM Author: Gary Bishop Last modified by: Gary Bishop Created Date: 1/11/2001 3:32:08 PM Document presentation format: On-screen Show – PowerPoint PPT presentation

Number of Views:43
Avg rating:3.0/5.0
Slides: 19
Provided by: GaryBi151
Learn more at: http://www.cs.unc.edu
Category:

less

Transcript and Presenter's Notes

Title: January 11


1
January 11
  • Books?
  • Email?
  • Admission?
  • You GOTTA read your email!
  • Accounts?

2
What does a computer look like?
  • Tape drives?
  • Big box with lots of lights?
  • Display with huge letters?
  • Little box with no lights?
  • Lump in the cable?

3
5 Classic Computer Components
4
Display
5
Mouse
6
Inside the case
b. Processor c. PCI slots e. Memory slots
7
Motherboard
8
Memory
  • RAM
  • DRAM
  • SRAM
  • ROM
  • Volatile / Non-Volatile
  • Magnetic

9
Processor
Pentium III Xeon
10
You only need switches and wires!
In
  • Relays
  • Vacuum tubes
  • Transistors
  • Integrated Circuits
  • VLSI
  • Nanotubes?
  • Quantum Effect Devices?

Control
Out
11
Hard Drive
12
Improving Technology
13
Performance Increase
14
Performance Trends
15
Abstraction C to ASM
Swap(int v, int k) int temp temp vk
vk vk1 vk1 temp
Assembly
Swap muli 2, 5, 4 add 2, 4, 2 lw 15,
0(2) lw 16, 4(2) sw 16, 0(2) sw 15,
4(2) jr 31
C compiler
16
Abstraction ASM to Binary
Assembly
Swap muli 2, 5, 4 add 2, 4, 2 lw 15,
0(2) lw 16, 4(2) sw 16, 0(2) sw 15,
4(2) jr 31
Assembler
00000000101000010000000000011000
00000000100011100001100000100001
10001100011000100000000000000000
10001100111100100000000000000100
10101100111100100000000000000000
10101100011000100000000000000100
00000011111000000000000000001000
Binary
17
Instruction Set Architecture
  • ... the attributes of a computing system as
    seen by the programmer, i.e. the conceptual
    structure and functional behavior, as distinct
    from the organization of the data flows and
    controls, the logic design, and the physical
    implementation.
  • Amdahl, Blaaw, and Brooks, 1964
  • interface between hardware and low-level software
  • standardizes instructions, machine language bit
    patterns, etc.
  • advantage different implementations of the same
    architecture
  • disadvantage sometimes prevents using new
    innovationsModern instruction set
    architectures
  • 80x86/Pentium/K6, PowerPC, DEC Alpha, MIPS,
    SPARC, HP

18
Where we are headed
  • Performance issues (Chapter 2) vocabulary and
    motivation
  • A specific instruction set architecture (Chapter
    3)Why MIPS? Why not Intel?
  • Arithmetic and how to build an ALU (Chapter 4)
  • Memory caches and virtual memory (Chapter 7)
  • Pipelining to improve performance (Chapter 6)
    briefly
  • I/O (Chapter 8) brieflyKey to a good grade
    reading the book!
Write a Comment
User Comments (0)
About PowerShow.com