Subversion Repositories Code-Repo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
141 Kevin 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
***********
11
Main Files:
12
***********
13
 
14
mm.{c,h}	
15
	Your solution malloc package. mm.c is the file that you
16
	will be handing in, and is the only file you should modify.
17
 
18
mdriver.c	
19
	The malloc driver that tests your mm.c file
20
 
21
short{1,2}-bal.rep
22
	Two tiny tracefiles to help you get started. 
23
 
24
Makefile	
25
	Builds the driver
26
 
27
**********************************
28
Other support files for the driver
29
**********************************
30
 
31
config.h	Configures the malloc lab driver
32
fsecs.{c,h}	Wrapper function for the different timer packages
33
clock.{c,h}	Routines for accessing the Pentium and Alpha cycle counters
34
fcyc.{c,h}	Timer functions based on cycle counters
35
ftimer.{c,h}	Timer functions based on interval timers and gettimeofday()
36
memlib.{c,h}	Models the heap and sbrk function
37
list.{c,h}  A doubly-linked list implementation you are free to use
38
 
39
*******************************
40
Building and running the driver
41
*******************************
42
To build the driver, type "make" to the shell.
43
 
44
To run the driver on a tiny test trace:
45
 
46
	unix> mdriver -V -f short1-bal.rep
47
 
48
The -V option prints out helpful tracing and summary information.
49
 
50
To get a list of the driver flags:
51
 
52
	unix> mdriver -h
53