2015-03-07 22:37:54 +08:00
|
|
|
#
|
|
|
|
Try below command
|
|
|
|
```
|
2015-03-09 23:14:47 +08:00
|
|
|
gcc -g -m32 -o lab1-ex0.exe lab1-ex0.s
|
2015-03-07 22:37:54 +08:00
|
|
|
```
|
|
|
|
Then you will get lab1_ex0.exe
|
|
|
|
|
|
|
|
Try to use below some tools to analysis lab1_ex0.exe
|
|
|
|
```
|
2015-03-09 23:14:47 +08:00
|
|
|
objdump -S ...
|
|
|
|
nm
|
2015-03-07 22:37:54 +08:00
|
|
|
file
|
2015-03-09 23:14:47 +08:00
|
|
|
strace -f ...
|
2015-03-07 22:37:54 +08:00
|
|
|
```
|
|
|
|
Try to understand the contents of this .s file.
|