首页> 外国专利> Control flow graph flattening device and method

Control flow graph flattening device and method

机译:控制流程图展平装置和方法

摘要

Control Flow Graph flattening of a function comprising a plurality of basic blocks having an address and at least one instruction. A processor creates a jump table associating a label of each basic block with its address, creates a coefficient array comprising constant coefficients, creates a dispatcher basic block comprising instructions to look up an address in the jump table and to jump to the address, replaces a Jump terminal instruction by a jump to the dispatcher basic block in each basic block, creates and inserts at least one lookup functions in each of the plurality of basic blocks, each lookup function returning a derived value based on a constant coefficient depending on at least an index of the basic block; creates and inserts a first branch function calculating the label of a subsequent basic block based on at least the derived value and a second branch function calculating the index of the subsequent basic block; and creates and inserts into the dispatcher basic block a transition function obtaining the address in the jump table based on at least the label of a subsequent basic block.
机译:函数的控制流图展平,该函数包括具有地址和至少一个指令的多个基本块。处理器创建一个跳转表,将每个基本块的标签与其地址相关联,创建一个包含常数系数的系数数组,创建一个调度程序基本块,其中包含在跳转表中查找地址并跳转到该地址的指令,以替换通过跳转到每个基本块中的调度程序基本块来跳转终端指令,在多个基本块中的每个基本块中创建并插入至少一个查找函数,每个查找函数至少根据一个常数返回基于常数系数的派生值。基本块的索引;创建并插入至少基于所导出的值来计算后续基本块的标签的第一分支函数以及计算后续基本块的索引的第二分支函数;并至少在随后的基本块的标签的基础上,创建一个转换函数并将其插入到分配器基本块中,以获取跳转表中的地址。

著录项

  • 公开/公告号US9904526B2

    专利类型

  • 公开/公告日2018-02-27

    原文格式PDF

  • 申请/专利权人 THOMSON LICENSING;

    申请/专利号US201514922151

  • 申请日2015-10-24

  • 分类号G06F9/45;G06F21/12;G06F21/14;

  • 国家 US

  • 入库时间 2022-08-21 12:55:24

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号