首页> 外国专利> Software managed cache optimization system and method for multi-processing systems

Software managed cache optimization system and method for multi-processing systems

机译:用于多处理系统的软件管理的缓存优化系统和方法

摘要

The present invention provides for a method for computer program code optimization for a software managed cache in either a uni-processor or a multi-processor system. A single source file comprising a plurality of array references is received. The plurality of array references is analyzed to identify predictable accesses. The plurality of array references is analyzed to identify secondary predictable accesses. One or more of the plurality of array references is aggregated based on identified predictable accesses and identified secondary predictable accesses to generate aggregated references. The single source file is restructured based on the aggregated references to generate restructured code. Prefetch code is inserted in the restructured code based on the aggregated references. Software cache update code is inserted in the restructured code based on the aggregated references. Explicit cache lookup code is inserted for the remaining unpredictable accesses. Calls to a miss handler for misses in the explicit cache lookup code are inserted. A miss handler is included in the generated code for the program. In the miss handler, a line to evict is chosen based on recent usage and predictability. In the miss handler, appropriate DMA commands are issued for the evicted line and the missing line.
机译:本发明提供了一种用于单处理器或多处理器系统中的软件管理的高速缓存的计算机程序代码优化的方法。接收包括多个数组引用的单个源文件。分析多个阵列参考以识别可预测的访问。分析多个数组引用以标识辅助可预测访问。基于所标识的可预测访问和所标识的次要可预测访问来聚合多个阵列参考中的一个或多个,以生成聚合参考。单个源文件根据汇总的引用进行重组,以生成重组的代码。根据汇总的引用,将预取代码插入重构的代码中。根据聚合的引用,将软件缓存更新代码插入重组代码中。对于其余的不可预测的访问,将插入显式缓存查找代码。插入针对显式缓存查找代码中的未命中的未命中处理程序的调用。程序的生成代码中包含未命中处理程序。在未命中处理程序中,根据最近的用法和可预测性选择驱逐线。在未命中处理程序中,将为收回的行和丢失的行发出适当的DMA命令。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号