update lab1-ex for 32bit and strace -f
This commit is contained in:
parent
d862f50424
commit
621bb0278f
@ -1,11 +1,12 @@
|
|||||||
all: lab1-ex0.exe lab1-ex1.exe
|
all: lab1-ex0.exe lab1-ex1.exe
|
||||||
|
|
||||||
lab1-ex0.exe: defines.h lab1-ex0.s
|
lab1-ex0.exe: defines.h lab1-ex0.s
|
||||||
gcc -g -o lab1-ex0.exe lab1-ex0.s
|
gcc -m32 -g -o lab1-ex0.exe lab1-ex0.s
|
||||||
|
strace -f ./lab1-ex0.exe
|
||||||
|
|
||||||
lab1-ex1.exe: lab1-ex1.c
|
lab1-ex1.exe: lab1-ex1.c
|
||||||
echo "compile and watch the syscalls from lab1-ex1"
|
echo "compile and watch the syscalls from lab1-ex1"
|
||||||
gcc -o lab1-ex1.exe lab1-ex1.c
|
gcc -m32 -o lab1-ex1.exe lab1-ex1.c
|
||||||
strace -c ./lab1-ex1.exe
|
strace -c ./lab1-ex1.exe
|
||||||
echo "watch the interrupts in linux"
|
echo "watch the interrupts in linux"
|
||||||
more /proc/interrupts
|
more /proc/interrupts
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
#
|
#
|
||||||
Try below command
|
Try below command
|
||||||
```
|
```
|
||||||
gcc -g -o lab1-ex0.exe lab1-ex0.s
|
gcc -g -m32 -o lab1-ex0.exe lab1-ex0.s
|
||||||
```
|
```
|
||||||
Then you will get lab1_ex0.exe
|
Then you will get lab1_ex0.exe
|
||||||
|
|
||||||
Try to use below some tools to analysis lab1_ex0.exe
|
Try to use below some tools to analysis lab1_ex0.exe
|
||||||
```
|
```
|
||||||
objdump
|
objdump -S ...
|
||||||
nm
|
nm
|
||||||
file
|
file
|
||||||
|
strace -f ...
|
||||||
```
|
```
|
||||||
Try to understand the contents of this .s file.
|
Try to understand the contents of this .s file.
|
||||||
|
Loading…
Reference in New Issue
Block a user