update related_info::lab0
This commit is contained in:
parent
84c96b3c3d
commit
a0ccd227da
@ -7,6 +7,4 @@ If you get gcc's error, try to read make.log and fix the bugs.
|
|||||||
|
|
||||||
If gcc successed, then you will get a.out.
|
If gcc successed, then you will get a.out.
|
||||||
|
|
||||||
Try to answer below question.
|
|
||||||
|
|
||||||
|
|
||||||
|
19
related_info/lab0/lab0_ex5.md
Normal file
19
related_info/lab0/lab0_ex5.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#README
|
||||||
|
analysis lab0_ex5
|
||||||
|
```
|
||||||
|
echo "compile and analysis lab0_ex5"
|
||||||
|
echo "====================================="
|
||||||
|
gcc -m32 -g -o lab0_ex5.exe lab0_ex5.c
|
||||||
|
echo "====================================="
|
||||||
|
echo "using objdump to decompile lab0_ex5"
|
||||||
|
echo "====================================="
|
||||||
|
objdump -S lab0_ex5.exe
|
||||||
|
echo "====================================="
|
||||||
|
echo "using readelf to analyze lab0_ex5"
|
||||||
|
echo "====================================="
|
||||||
|
readelf -a lab0_ex5.exe
|
||||||
|
echo "====================================="
|
||||||
|
echo "using nm to analyze lab0_ex5"
|
||||||
|
echo "====================================="
|
||||||
|
nm lab0_ex5.exe
|
||||||
|
```
|
9
related_info/lab0/lab0_ex6.md
Normal file
9
related_info/lab0/lab0_ex6.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#README
|
||||||
|
analysis lab0_ex6
|
||||||
|
```
|
||||||
|
echo "====================================="
|
||||||
|
echo "compile and analysis lab0_ex6"
|
||||||
|
echo "====================================="
|
||||||
|
gcc -g -m32 -o lab0_ex6.exe lab0_ex6.c
|
||||||
|
./lab0_ex6
|
||||||
|
```
|
@ -1,25 +0,0 @@
|
|||||||
all: lec7_1.c
|
|
||||||
@echo "====================================="
|
|
||||||
@echo "compile and analysis lec7_2"
|
|
||||||
@echo "====================================="
|
|
||||||
gcc -g -o lec7_2 lec7_2-fork.c
|
|
||||||
@echo "====================================="
|
|
||||||
@echo "compile and analysis lec7_1"
|
|
||||||
@echo "====================================="
|
|
||||||
gcc -g -o lec7_1 lec7_1.c
|
|
||||||
@echo "====================================="
|
|
||||||
@echo "using objdump to decompile lec7_1"
|
|
||||||
@echo "====================================="
|
|
||||||
objdump -S lec7_1
|
|
||||||
@echo "====================================="
|
|
||||||
@echo "using readelf to analyze lec7_1"
|
|
||||||
@echo "====================================="
|
|
||||||
readelf -a lec7_1
|
|
||||||
@echo "====================================="
|
|
||||||
@echo "using nm to analyze lec7_1"
|
|
||||||
@echo "====================================="
|
|
||||||
nm lec7_1
|
|
||||||
process_state:
|
|
||||||
top
|
|
||||||
clean:
|
|
||||||
rm ./lec7_1 ./lec7_2
|
|
Loading…
Reference in New Issue
Block a user