⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.h

📁 ICS 课程的Lab6
💻 H
字号:
#ifndef __CONGIF_H_#define __CONFIG_H_/* * config.h - malloc lab configuration file * * Copyright (c) 2002, R. Bryant and D. O'Hallaron, All rights reserved. * May not be used, modified, or copied without permission. *  *//* * This constant gives the estimated performance of the libc malloc * package on our traces on some reference system, typically the same * kind of system the students use. Its purpose is to cap the * contribution of throughput to the performance index. Once the * students surpass the AVG_LIBC_THRUPUT, they get no further benefit * to their score.  This deters students from building extremely fast, * but extremely stupid malloc packages.  */#define AVG_LIBC_THRUPUT      600E3  /* 600 Kops/sec */ /*   * This constant determines the contributions of space utilization  * (UTIL_WEIGHT) and throughput (1 - UTIL_WEIGHT) to the performance  * index.  */#define UTIL_WEIGHT .60/*  * Alignment requirement in bytes (either 4 or 8)  */#define ALIGNMENT 8  /*  * Maximum heap size in bytes  */#define MAX_HEAP (20*(1<<20))  /* 20 MB *//***************************************************************************** * Set exactly one of these USE_xxx constants to "1" to select a timing method *****************************************************************************/#define USE_FCYC   1   /* cycle counter and K-best scheme (x86 and Alpha only) */#define USE_ITIMER 0   /* interval timer (any Unix box) */#define USE_GETTOD 0   /* gettimeofday (any Unix box) */#endif /* __CONFIG_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -