diff --git a/related_info/lec2/Makefile b/related_info/lec2/Makefile new file mode 100644 index 0000000..1c3bb74 --- /dev/null +++ b/related_info/lec2/Makefile @@ -0,0 +1,8 @@ +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 diff --git a/related_info/lec2/hello b/related_info/lec2/hello new file mode 100755 index 0000000..37ea79c Binary files /dev/null and b/related_info/lec2/hello differ diff --git a/related_info/lec2/hello.c b/related_info/lec2/hello.c new file mode 100644 index 0000000..5b9f577 --- /dev/null +++ b/related_info/lec2/hello.c @@ -0,0 +1,5 @@ +#include +void main(void) +{ + printf("hello world\n"); +}