2015-03-07 22:37:54 +08:00
|
|
|
all: lab1-ex0.exe lab1-ex1.exe
|
2013-09-17 20:36:57 +08:00
|
|
|
|
2015-03-07 22:37:54 +08:00
|
|
|
lab1-ex0.exe: defines.h lab1-ex0.s
|
2015-03-09 23:14:47 +08:00
|
|
|
gcc -m32 -g -o lab1-ex0.exe lab1-ex0.s
|
|
|
|
strace -f ./lab1-ex0.exe
|
2015-03-07 22:37:54 +08:00
|
|
|
|
|
|
|
lab1-ex1.exe: lab1-ex1.c
|
|
|
|
echo "compile and watch the syscalls from lab1-ex1"
|
2015-03-09 23:14:47 +08:00
|
|
|
gcc -m32 -o lab1-ex1.exe lab1-ex1.c
|
2015-03-07 22:37:54 +08:00
|
|
|
strace -c ./lab1-ex1.exe
|
|
|
|
echo "watch the interrupts in linux"
|
|
|
|
more /proc/interrupts
|
|
|
|
|
2013-09-17 20:36:57 +08:00
|
|
|
clean:
|
2015-03-07 22:37:54 +08:00
|
|
|
rm lab1-ex0.exe lab1-ex1.exe
|