slae x32 intro Flashcards

1
Q

What are the computer building blocks?

A

CPU, Memory, IO devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What components make up the CPU?

A

Control Unit, Execution Unit, Registers, Flags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the Control Unit handle?

A

Retrieve / Decode instructions / Store data in memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Execution Unit?

A

Actual execution of instruction happens

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do the registers handle?

A

Internal memory locations used as “variables”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are Flags?

A

Used to indicate various “event” when execution is happening

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the Logical IA-32 Registers?

A

General Purpose, Segment, Flags and EIP, Floating Point Unit Registers, MMX Registers, XMM Registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the first 4 General Purpose Registers?

A

EAX, EBX, ECX, EDX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the second 4 General Purpose Registers?

A

ESP, EBP, ESI, EDI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

EAX common functionality?

A

Accumulator Register is used for storing operands and the result data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

EBX common functionality?

A

Base Register - points to data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

ECX common functionality?

A

Count Register - Loop operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

EDX common functionality?

A

Data Register - I/O Pointer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

ESI and EDI common functionality?

A

Data Pointer Registers for memory operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

ESP common functionality?

A

Stack Pointer Register

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

EBP common functionality?

A

Stack Data Pointer Register

17
Q

What 6 components make up the Segment Registers?

A

CS (code), DS (data), SS (stack), ES (data), FS (data), and GS (data)

18
Q

What is FPU?

A

Floating Point Unit - handles floating point numbers. 80 bits wide

19
Q

What is SIMD?

A

Single Instruction Multiple Data

20
Q

What components make up SIMD?

A

MMX, SSE, SSE2, SSE3

21
Q

What is the structure of MMX

A

Carved out of FPU and makes up the first lower 64 bits

22
Q

What is the structure of XXM

A

128 bits in 7, XMM0-XXM7

23
Q

What are the 3 CPU modes for IA-32?

A

Real Mode, Protected Mode*, System Management Mode

24
Q

What re the 3 Memory Models?

A

Flat Model*, Segmented Model, Real-Address Mode Model

25
What two components make up the Virtual Memory Model?
Kernel Space (1 GB) and User Space (3 GB)
26
What six components make up the User Space portion of the Virtual Memory Model?
Stack, Share Libs + Mappings, Heap, BSS, Data, and Text
27
What is the Heap memory used for?
Dynamic Memory
28
What is the BSS memory used for?
Uninitialized Data
29
What is the Data memory used for?
Initialized Data
30
What is the Text memory used for?
Program Code
31
What is the Stack memory used for?
Function Args + Local Variables
32
What are three methods to view process organization?
/proc/pid/maps, pmap, gdb