Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2009, Vol. 35 ›› Issue (3): 77-79. doi: 10.3969/j.issn.1000-3428.2009.03.027

• Software Technology and Database • Previous Articles     Next Articles

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

基于SUIF的函数内联技术

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

  1. (解放军信息工程大学信息工程学院,郑州 450002)

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

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

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

CLC Number: