Cache模拟器

上传者: jiangxinnju | 上传时间: 2019-12-21 19:59:29 | 文件大小: 3.76MB | 文件类型: zip
程序使用C/C++混合编程,基本实现的Cache的模拟功能(通过读取trace文件得到相应的命中率),能够实现直接映射、全相联、组相联三种映射方式,其中全相联和组相联能够实现随机、LRU两种替换策略。目前三种映射方式均采用回写法,但已经定义了其它写策略的接口,可以很容易扩充。程序具有比较强的鲁棒性,能够接受一定范围的错误输入,并能够比较智能的提示用户输入。

文件下载

资源详情

[{"title":"( 46 个子文件 3.76MB ) Cache模拟器","children":[{"title":"CacheSim","children":[{"title":"FileTest.cpp <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"libjiangxin.cpp <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"README.txt <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Release","children":[{"title":"CacheSim.exe <span style='color:#111;'> 475.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"CacheSim.exe <span style='color:#111;'> 1.15MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"swim.trace <span style='color:#111;'> 3.76MB </span>","children":null,"spread":false},{"title":"CacheSim.layout <span style='color:#111;'> 2.81KB </span>","children":null,"spread":false},{"title":"functions.h <span style='color:#111;'> 593B </span>","children":null,"spread":false},{"title":"CalcInfo.cpp <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"jiangxin.trace <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"base.h <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Release","children":[{"title":"main.o <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"functions.o <span style='color:#111;'> 15.06KB </span>","children":null,"spread":false},{"title":"base.o <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"CreateCache.o <span style='color:#111;'> 37.96KB </span>","children":null,"spread":false},{"title":"LRU.o <span style='color:#111;'> 41.65KB </span>","children":null,"spread":false},{"title":"GetReplace.o <span style='color:#111;'> 42.27KB </span>","children":null,"spread":false},{"title":"LruHitProcess.o <span style='color:#111;'> 15.27KB </span>","children":null,"spread":false},{"title":"InitVariables.o <span style='color:#111;'> 35.07KB </span>","children":null,"spread":false},{"title":"extra.o <span style='color:#111;'> 14.56KB </span>","children":null,"spread":false},{"title":"FileTest.o <span style='color:#111;'> 16.54KB </span>","children":null,"spread":false},{"title":"GetInput.o <span style='color:#111;'> 18.10KB </span>","children":null,"spread":false},{"title":"CalcInfo.o <span style='color:#111;'> 16.75KB </span>","children":null,"spread":false},{"title":"main.o <span style='color:#111;'> 15.20KB </span>","children":null,"spread":false},{"title":"functions.o <span style='color:#111;'> 61.46KB </span>","children":null,"spread":false},{"title":"base.o <span style='color:#111;'> 34.45KB </span>","children":null,"spread":false},{"title":"PrintOutput.o <span style='color:#111;'> 17.92KB </span>","children":null,"spread":false},{"title":"libjiangxin.o <span style='color:#111;'> 4.55KB </span>","children":null,"spread":false},{"title":"LruUnhitUnspace.o <span style='color:#111;'> 15.43KB </span>","children":null,"spread":false},{"title":"LruUnhitSpace.o <span style='color:#111;'> 15.15KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"gcc.trace <span style='color:#111;'> 6.39MB </span>","children":null,"spread":false},{"title":"GetInput.cpp <span style='color:#111;'> 3.40KB </span>","children":null,"spread":false},{"title":"jiangxin.h <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"mcf.trace <span style='color:#111;'> 9.02MB </span>","children":null,"spread":false},{"title":"CreateCache.cpp <span style='color:#111;'> 420B </span>","children":null,"spread":false},{"title":"PrintOutput.cpp <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"CacheSim.cbp <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"LRU.cpp <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"CacheSim.depend <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"twolf.trace <span style='color:#111;'> 5.99MB </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 486B </span>","children":null,"spread":false},{"title":"InitVariables.cpp <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"gzip.trace <span style='color:#111;'> 5.96MB </span>","children":null,"spread":false},{"title":"functions.cpp <span style='color:#111;'> 9.86KB </span>","children":null,"spread":false},{"title":"CacheSim.mmap <span style='color:#111;'> 30.14KB </span>","children":null,"spread":false},{"title":"base.cpp <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • qq_29881799 :
    帮朋友下的,赞一个
    2020-07-21
  • ForestInSun :
    帮朋友下的,赞一个
    2020-07-21
  • zx_sz :
    谢了,正好要写这个,参考了
    2019-05-04
  • zx_sz :
    谢了,正好要写这个,参考了
    2019-05-04
  • vastsky_miaow :
    不错的资源
    2019-04-16
  • vastsky_miaow :
    不错的资源
    2019-04-16
  • w1576522387 :
    这个确实挺全的,很好的资源
    2017-12-13
  • w1576522387 :
    这个确实挺全的,很好的资源
    2017-12-13
  • xiaohuh421 :
    很不错的资源, 果断下载了
    2016-08-26
  • xiaohuh421 :
    很不错的资源, 果断下载了
    2016-08-26

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明