作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (3): 77-79.

• 软件技术与数据库 • 上一篇    下一篇

基于SUIF的函数内联技术

肖 乐,庞建民,赵荣彩,马宏途   

  1. (解放军信息工程大学信息工程学院,郑州 450002)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-02-05 发布日期:2009-02-05

Function Inline Technique Based on SUIF

XIAO Le, PANG Jian-min, ZHAO Rong-cai, MA Hong-tu   

  1. (Institute of Information Engineering, PLA Information Engineering University, Zhengzhou 450002)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-02-05 Published:2009-02-05

摘要: 从基于调用图的函数内联技术、函数参数的映射技术和内联使用的不同策略3个方面讨论基于SUIF系统的内联技术的实现。根据KAP系统需求,提出叶节点的内联算法,以满足并行性分析的需要,降低全内联引起的代码膨胀问题。测试结果表明,该算法能够有效地内联NPB测试集中的一些函数,经函数内联后,加速比最高可提高15.78%。

关键词: 内联, 函数调用图, 参数映射, 调用

Abstract: This paper describes how to construct the algorithm for inline data-structure such as function call graph, and presents the inline algorithm based on the function call graph. According to the requirements of KAP system, an inline algorithm for leaf-node is proposed. Testing results indicate that the algorithm can inline efficiently and effectively the functions of NPB testing set. After inlining, the ratio of acceleration can reach 15.78% at most.

Key words: inline, function call graph, parameter mapping, call

中图分类号: