...
首页> 外文期刊>ACM SIGPLAN Notices: A Monthly Publication of the Special Interest Group on Programming Languages >Register allocation using lazy saves, eager restores, and greedy shuffling
【24h】

Register allocation using lazy saves, eager restores, and greedy shuffling

机译:使用惰性保存,热切还原和贪婪改组进行寄存器分配

获取原文
获取原文并翻译 | 示例
           

摘要

This paper presents a fast and effective linear intraprocedural register allocation strategy that optimizes register usage across procedure calls. It capitalizes on our observation that while procedures that do not contain calls (syntactic leaf routines) account for under one third of all procedure activations, procedures that actually make no calls (effective leaf routines) account for over two thirds of all procedure activations. Well-suited for both caller-and calle-save registers, our strategy employs a “lazy” save mechanism that avoids saves for all effective leaf routines, an “eager” restore mechanism that reduces the effect of memory latency, and a “greedy” register shuffling algorithm that does a remarkbly good job of minimizing the need for temporaries in setting up procedure calls.
机译:本文提出了一种快速有效的线性过程内寄存器分配策略,该策略可优化跨过程调用的寄存器使用。它利用我们的观察力,虽然不包含调用的过程(语法叶子例程)占所有过程激活的不到三分之一,而实际上不进行调用的过程(有效的叶子例程)占所有过程激活的三分之二以上。我们的策略非常适合于调用方和被调用方保存寄存器,它采用了一种“惰性”保存机制,可以避免对所有有效的叶子例程进行保存;一种“渴望”的还原机制,可以减少内存延迟的影响;以及一种“贪婪”的机制。寄存器重排算法在将建立过程调用的临时性需求降至最低方面表现出色。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号