SLAE32 Flashcards Preview

OSCE > SLAE32 > Flashcards

Flashcards in SLAE32 Deck (15)
Loading flashcards...
1
Q

Assembly to Machine

A

Assembler, linker and loader

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

3
Q

CPU information

A

Lscpu or cat /proc/cpuinfo

4
Q

System organization basics

A

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

5
Q

Control unit

A

Retrieve/decode instructions, retrieve/ store data in memory

6
Q

Execution unit

A

Actual exec. Of instructions happens here

7
Q

Registers and flags

A

Used as temp storage for execution unit

8
Q

General purpose registers

A

Eax, ebx, ecx,edx each 32 bits long

Esp, ebp, esi,edi

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

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

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

12
Q

Simd

A

Single instruction multiple data

13
Q

Examples of simd

A

Mmx see sse2 sse3

These use mmx and xmm registers

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

15
Q

Xmm?

A

Xmm0 to xmm7 and are 128 bits long