《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
471 B

  1. all: lab1-ex0.exe lab1-ex1.exe lab1-ex3.s
  2. lab1-ex0.exe: defines.h lab1-ex0.s
  3. gcc -m32 -g -o lab1-ex0.exe lab1-ex0.s
  4. strace -f ./lab1-ex0.exe
  5. lab1-ex1.exe: lab1-ex1.c
  6. echo "compile and watch the syscalls from lab1-ex1"
  7. gcc -m32 -o lab1-ex1.exe lab1-ex1.c
  8. strace -c ./lab1-ex1.exe
  9. echo "watch the interrupts in linux"
  10. more /proc/interrupts
  11. lab1-ex3.s: lab1-ex3.c
  12. echo "show .s files"
  13. gcc -m32 -S lab1-ex3.c
  14. clean:
  15. rm lab1-ex0.exe lab1-ex1.exe lab1-ex3.s