首页> 外国专利> Method and a device for abstracting instruction sequences with tail merging

Method and a device for abstracting instruction sequences with tail merging

机译:通过尾部合并来抽象指令序列的方法和设备

摘要

A method and a device for abstracting instruction sequences in a computer program. First, a control flow graph of the program is generated and analysed in order to detect multiple occurrences of a same instruction sequence (504, 506). Then, a function including the longest sequence common to at least two instruction sequences from a plurality of sequences having a common instruction sequence of equal or shorter length compared to the longest sequence is created (512). Finally, the original occurrences of the instruction sequences in the plurality of sequences with a reference to a proper position in the newly created function are deleted and a reference to a proper position in the created function inserted instead (514).
机译:在计算机程序中抽象指令序列的方法和设备。首先,生成并分析程序的控制流程图,以便检测同一指令序列( 504、506 )的多次出现。然后,创建一个函数,该函数包括与具有与最长序列相同或较短长度的公共指令序列的多个序列中的至少两个指令序列所共有的最长序列( 512 )。最后,删除参考新创建函数中适当位置的多个序列中指令序列的原始出现,并代之以插入所创建函数中适当位置的引用( 514 )。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号