資源簡介
哈工大計算機系統實驗六實驗報告和一些實驗材料,可以參考一些
代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?
#include?“cachelab.h“
//#define?DEBUG_ON
#define?ADDRESS_LENGTH?64
/*?Type:?Memory?address?*/
typedef?unsigned?long?long?int?mem_addr_t;
/*?Type:?Cache?line
???LRU?is?a?counter?used?to?implement?LRU?replacement?policy??*/
typedef?struct?cache_line?{
????char?valid;
????mem_addr_t?tag;
????unsigned?long?long?int?lru;
}?cache_line_t;
typedef?cache_line_t*?cache_set_t;
typedef?cache_set_t*?cache_t;
/*?Globals?set?by?command?line?args?*/
int?verbosity?=?0;?/*?print?trace?if?set?*/
int?s?=?0;?/*?set?index?bits?*/
int?b?=?0;?/*?block?offset?bits?*/
int?E?=?0;?/*?associativity?*/
char*?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????6652??2018-12-03?16:40??實驗六1170500704魏孝文\csim.c
?????文件?????704317??2018-12-04?12:54??實驗六1170500704魏孝文\HITICS-lab6實驗1170500704魏孝文-converted.pdf
?????文件?????577536??2018-12-04?12:47??實驗六1170500704魏孝文\HITICS-lab6實驗1170500704魏孝文.doc
?????文件??????10028??2018-12-04?01:31??實驗六1170500704魏孝文\trans.c
?????目錄??????????0??2018-12-04?12:55??實驗六1170500704魏孝文
-----------?---------??----------?-----??----
??????????????1298533????????????????????5
評論
共有 條評論