add progs for lec2

This commit is contained in:
chyyuu 2013-09-23 09:20:58 +08:00
parent bd9d82beda
commit 09ffe0ec51
3 changed files with 13 additions and 0 deletions

View File

@ -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

BIN
related_info/lec2/hello Executable file

Binary file not shown.

View File

@ -0,0 +1,5 @@
#include <stdio.h>
void main(void)
{
printf("hello world\n");
}