这是一个本人学习 csapp 的 learning 库
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

52 linhas
1.4 KiB

2 anos atrás
  1. #####################################################################
  2. # CS:APP Malloc Lab
  3. # Handout files for students
  4. #
  5. # Copyright (c) 2002, R. Bryant and D. O'Hallaron, All rights reserved.
  6. # May not be used, modified, or copied without permission.
  7. #
  8. ######################################################################
  9. ***********
  10. Main Files:
  11. ***********
  12. mm.{c,h}
  13. Your solution malloc package. mm.c is the file that you
  14. will be handing in, and is the only file you should modify.
  15. mdriver.c
  16. The malloc driver that tests your mm.c file
  17. short{1,2}-bal.rep
  18. Two tiny tracefiles to help you get started.
  19. Makefile
  20. Builds the driver
  21. **********************************
  22. Other support files for the driver
  23. **********************************
  24. config.h Configures the malloc lab driver
  25. fsecs.{c,h} Wrapper function for the different timer packages
  26. clock.{c,h} Routines for accessing the Pentium and Alpha cycle counters
  27. fcyc.{c,h} Timer functions based on cycle counters
  28. ftimer.{c,h} Timer functions based on interval timers and gettimeofday()
  29. memlib.{c,h} Models the heap and sbrk function
  30. *******************************
  31. Building and running the driver
  32. *******************************
  33. To build the driver, type "make" to the shell.
  34. To run the driver on a tiny test trace:
  35. unix> mdriver -V -f short1-bal.rep
  36. The -V option prints out helpful tracing and summary information.
  37. To get a list of the driver flags:
  38. unix> mdriver -h