SLAE32 Flashcards

32 bit assembly

1
Q

Assembly to Machine

A

Assembler, linker and loader

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

C language to executable

A

Hello.c -> preprocessor -> hello.i -> compiler -> hello.s[assembly code] -> assembler -> hello.o[object file] -> linker{shared libraries} -> hello.exe -> loader{run time objects/libraries} -> execute code

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

CPU information

A

Lscpu or cat /proc/cpuinfo

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

System organization basics

A

CPU , memory and I/o devices connected via system bus

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

Control unit

A

Retrieve/decode instructions, retrieve/ store data in memory

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

Execution unit

A

Actual exec. Of instructions happens here

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

Registers and flags

A

Used as temp storage for execution unit

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

General purpose registers

A

Eax, ebx, ecx,edx each 32 bits long

Esp, ebp, esi,edi

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

Segment registers

A

Cs - code segment, Ds - data segment,ss - stack segment, es,fs,gs 15 bits long
Usage depends on flat or segmented memory model

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

Floating point unit x87 data registers

A

R0 to R7 are data registers
Size is 80 bits
These data registers behave like stack

Msb hold sign
Next 8 bits hold exponent
The rest hold the significand

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

Other x87 registers

A

16 bit long
Control register
Status register
Tag register

48 bit long
Last instruction pointer
Last data pointer

11 bits long
Opcode

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

Simd

A

Single instruction multiple data

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

Examples of simd

A

Mmx see sse2 sse3

These use mmx and xmm registers

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

What is mmx

A

Mmx is made up of st0-7 registers

The last 64 bits of total 80 bits is mm0 to mm7

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

Xmm?

A

Xmm0 to xmm7 and are 128 bits long

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