pc hardware and x86 programming lec 2 jinyang li

7
PC hardware and x86 programming Lec 2 Jinyang Li

Upload: janis-gregory

Post on 13-Dec-2015

252 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PC hardware and x86 programming Lec 2 Jinyang Li

PC hardware andx86 programming

Lec 2

Jinyang Li

Page 2: PC hardware and x86 programming Lec 2 Jinyang Li

Write an OS to count lines

• Alice is asking you to write an OS to count lines in a file.

• What must you know before starting?– What type of computer?– What type of the disk?– What type of the monitor?

Page 3: PC hardware and x86 programming Lec 2 Jinyang Li

Inside a PC

QuickTime™ and a decompressor

are needed to see this picture.

Page 4: PC hardware and x86 programming Lec 2 Jinyang Li

PC architecture

Plug CPU (Intel Xeon) here

Plug 4G memory banks here

Page 5: PC hardware and x86 programming Lec 2 Jinyang Li

QuickTime™ and a decompressor

are needed to see this picture.

PC architecture

Page 6: PC hardware and x86 programming Lec 2 Jinyang Li

Processor architecture

• X86– Most commercially successful– A class of CPU chips– An machine instruction set– Used in most PCs, workstations and laptops

• ARM (advanced RISC machine)– Used in most mobile phones (e.g. iphone)

• MIPS– Cisco routers, wireless routers, playstation

Page 7: PC hardware and x86 programming Lec 2 Jinyang Li

X86 is the dominant PC architecture

Intel 808616-bitIA-16

Intel 38632-bitIA-32 Opteron

64-bitx86-64

Intel Core 2

Athlon

Pentium 4

1978 1985 1999 2000 2003 2006