update related_info

This commit is contained in:
yuchen 2015-03-07 22:37:54 +08:00
parent ff104a942c
commit 749f4e3f93
7 changed files with 40 additions and 12 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@ tags
*.workspace
a.out
make.log
*.exe

View File

@ -1,6 +1,14 @@
all: write
all: lab1-ex0.exe lab1-ex1.exe
lab1-ex0.exe: defines.h lab1-ex0.s
gcc -g -o lab1-ex0.exe lab1-ex0.s
lab1-ex1.exe: lab1-ex1.c
echo "compile and watch the syscalls from lab1-ex1"
gcc -o lab1-ex1.exe lab1-ex1.c
strace -c ./lab1-ex1.exe
echo "watch the interrupts in linux"
more /proc/interrupts
write: defines.h write.s
gcc -o write write.s
clean:
rm write write.o
rm lab1-ex0.exe lab1-ex1.exe

View File

@ -0,0 +1,15 @@
#
Try below command
```
gcc -g -o lab1-ex0.exe lab1-ex0.s
```
Then you will get lab1_ex0.exe
Try to use below some tools to analysis lab1_ex0.exe
```
objdump
nm
file
```
Try to understand the contents of this .s file.

View File

@ -0,0 +1,12 @@
#
Try below command
```
echo "compile and watch the syscalls from lab1-ex1"
gcc -o lab1-ex1.exe lab1-ex1.c
strace -c ./lab1-ex1.exe
echo "watch the interrupts in linux"
more /proc/interrupts
```
Try to analysis the means of these output log.

View File

@ -1,8 +0,0 @@
all: hello.c
echo "compile and watch the syscalls from hello"
gcc -o hello hello.c
strace -c ./hello
echo "watch the interrupts in linux"
more /proc/interrupts
clean:
rm ./hello