《操作系统》的实验代码。
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
835 B

  1. all: lec7_1.c
  2. @echo "====================================="
  3. @echo "compile and analysis lec7_2"
  4. @echo "====================================="
  5. gcc -g -o lec7_2 lec7_2-fork.c
  6. @echo "====================================="
  7. @echo "compile and analysis lec7_1"
  8. @echo "====================================="
  9. gcc -g -o lec7_1 lec7_1.c
  10. @echo "====================================="
  11. @echo "using objdump to decompile lec7_1"
  12. @echo "====================================="
  13. objdump -S lec7_1
  14. @echo "====================================="
  15. @echo "using readelf to analyze lec7_1"
  16. @echo "====================================="
  17. readelf -a lec7_1
  18. @echo "====================================="
  19. @echo "using nm to analyze lec7_1"
  20. @echo "====================================="
  21. nm lec7_1
  22. process_state:
  23. top
  24. clean:
  25. rm ./lec7_1 ./lec7_2