Design basis information security system of the third week learning summary

Information security system design basis third week study concluded
the main knowledge as follows:
First, the assembly language:
1. Generate a file assembler
(1) using the GCC compiler Example: OG-GCC--S- code.c.
2. on files o disassemble
(1) using objdump
(2) OD mstore.o

Second, the encoding program
1. Unix command line coding
Example: compiling p1.c p2c and two files linux> gcc-Og-o p p1.c p2.c

  1. -Og encoding program tells the encoder optimization level employed
    (1) -01 indicates the level of use of a first level optimization, the optimization compiler code generation time and the final form are related
    (2) is generally considered the second stage optimization -02 It is a better choice
  2. -o indicate the name of the executable file compiled to p p1.c

Third, the data format
C data type declared Intel assembly code suffix size (bytes)
Char. 1 Byte B
Short Word 2 W is
int. 4 dword l
Long quadword. 8 Q
char. 8 quadword Q
a float. 4 single precision S
Double Double l 8

Fourth, the access information
1. The general purpose register:% rax,% rbx,% rcr,% rdx,% rsi,% rdi,% rbp,% rsp etc.
2. Operand: immediate Imm Register: R [Ea] memory reference M [......]

  1. Data transfer instruction:
    MOV instruction classes: copies the value of the source operand to the destination operand, the source operand is an immediate value stored in a register or in memory, the destination operand specifies a register or memory location may be
  2. Addressing Mode
    (1) Literal: operands in the instruction given direct
    (2) addressing: for data stored in the internal register in the CPU (length of the source operand and a destination operand should be consistent)
    (3 ) memory addressing: operand stored in memory, the number of instructions that are given offset address information
    5. push and popping: stack is a data structure that can add or remove value, follow the "LIFO" principle,
    by operating to push-push, delete data operations pop

Guess you like

Origin www.cnblogs.com/cxd20175303/p/11668655.html