Originally in the process of achieving malloc, there must be an # include "Config.h"
But how to find can not find, as long as Google, fortunately there are good people gave the config.h
Otherwise I don't understand how much heap_max is ....
#ifndef __config_h_#define __config_h_/** config.h-malloc Lab configuration file** Copyright (c) 2002, R. Bryant and D. O ' Hallaron, All rights reserved.* is used, modified, or copied without permission.*//** Config variables for SUBMI Tting Autoresults to the Autolab server* note:the COURSE and labs variables must match the directory names* on the Autolab server.*//** This is the default path where the driver would look for the* default tracefiles. You can override it in runtime with the-t flag.*/#define TRACEDIR "./traces/"/** the list of default Tracefiles I n Tracedir that the driver* would use for testing. Modify this if you want to add or delete* traces from the driver's Test suite.** the first four test correctness. The last several test utilization* and performance.*/#define Default_tracefiles "Alaska.rep", "Amptjp.rep", "Bash.rep", " Boat.rep "," Cccp.rep "," Chrome.rep "," Coalesce-big.rep "," Coalescing-bal.rep "," Corners.rep "," Cp-decl.rep "," Exhaust.rep "," Firefox.Rep "," Firefox-reddit.rep "," Hostname.rep "," Login.rep "," Lrucd.rep "," Ls.rep "," Malloc.rep "," Malloc-free.rep "," Needle.rep "," Nlydf.rep "," Perl.rep "," Qyqyc.rep "," Random.rep "," Random2.rep "," Rm.rep "," Rulsr.rep "," Seglist.rep "," Short2.rep "/** If" uncommented, then use "Alt grading", in which* final_score = min (Util_score, Perf_score), which Prevents* an unbalanced allocator from getting a good score. alt* grading ignores util_weight, as both UTIL and Perf is graded* on a scale from 0 to 100.*///#define alt_grading/** St Udents get 0 points for this point or below (ops/sec) */#define Min_speed 3000e3/** Students get 0 points for this alloca tion fraction or below*/#define MIN_SPACE 0.60/** Students can get more points for building faster allocators, up to* this Point (in ops/sec) */#define MAX_SPEED 13750e3/** Students can get more points for building more efficient allocators,* Up-to-this-point (1 is perfect). */#define MAX_SPACE 0.91/** This constant determines the contribUtions of Space utilization* (util_weight) and throughput (1-util_weight) to the performance* index.*/#define Util_weigh T. 61/** Alignment requirement in bytes (either 4 or 8) */#define Alignment 8/** Maximum heap size in bytes*/#define Max_he AP (100* (1<<20))/*/*//****************************************************************************** MB Set exactly one of these Use_xxx constants to "1" to select a timing method*********************************************** /#define USE_FCYC 1/* Cycle counter W/k-best scheme (x86 & Alpha only) */#define Use_it Imer 0/* Interval timer (any UNIX box) */#define USE_GETTOD 0/* gettimeofday (any UNIX box) */#endif/* __config_h */
God Hallaron