SLAE32 Flashcards Preview

OSCE > SLAE32 > Flashcards

Flashcards in SLAE32 Deck (15):
1

Assembly to Machine

Assembler, linker and loader

2

C language to executable

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

CPU information

Lscpu or cat /proc/cpuinfo

4

System organization basics

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

5

Control unit

Retrieve/decode instructions, retrieve/ store data in memory

6

Execution unit

Actual exec. Of instructions happens here

7

Registers and flags

Used as temp storage for execution unit

8

General purpose registers

Eax, ebx, ecx,edx each 32 bits long
Esp, ebp, esi,edi

9

Segment registers

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

10

Floating point unit x87 data registers

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

Other x87 registers

16 bit long
Control register
Status register
Tag register

48 bit long
Last instruction pointer
Last data pointer

11 bits long
Opcode

12

Simd

Single instruction multiple data

13

Examples of simd

Mmx see sse2 sse3

These use mmx and xmm registers

14

What is mmx

Mmx is made up of st0-7 registers
The last 64 bits of total 80 bits is mm0 to mm7

15

Xmm?

Xmm0 to xmm7 and are 128 bits long