x86 architecture

22
X86 Architecture

Upload: lawrence-oneal

Post on 03-Jan-2016

144 views

Category:

Documents


2 download

DESCRIPTION

X86 Architecture. Intel’s Dilemma. All (most) software uses CISC code and needs a CISC ISA RISC is more efficient, CISC is cumbersome. Pentium. CISC Input machine code. Translation CISC to RISC. Execution as RISC. Pentium Architecture. CISC. RISC. Pentium Pipeline. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: X86 Architecture

X86 Architecture

Page 2: X86 Architecture
Page 3: X86 Architecture

Intel’s Dilemma• All (most) software uses CISC code and needs a CISC ISA

• RISC is more efficient, CISC is cumbersome

PentiumCISC Input machine code

Translation CISC to RISC

Execution as RISC

Page 4: X86 Architecture

PentiumArchitecture

CISC

RISC

Page 5: X86 Architecture

Pentium Pipeline

Page 6: X86 Architecture
Page 7: X86 Architecture
Page 8: X86 Architecture
Page 9: X86 Architecture
Page 10: X86 Architecture
Page 11: X86 Architecture
Page 12: X86 Architecture
Page 13: X86 Architecture
Page 14: X86 Architecture
Page 15: X86 Architecture
Page 16: X86 Architecture
Page 17: X86 Architecture
Page 18: X86 Architecture
Page 19: X86 Architecture
Page 20: X86 Architecture
Page 21: X86 Architecture
Page 22: X86 Architecture

// Test1.cpp : Defines the entry point for the console application.//#include "stdafx.h"int _tmain(int argc, _TCHAR* argv[]){

int x,y,z;x = 3;

0041137E mov dword ptr [x],3 puts 3 into memory at address x

y = 5;00411385 mov dword ptr [y],5 puts 5 into memory at address y

z = x + y;0041138C mov eax,dword ptr [x] moves data at address x into eax0041138F add eax,dword ptr [y] adds data at address y to eax00411392 mov dword ptr [z],eax moves contents of eax to memory at y

return 0;00411395 xor eax,eax }