朱浩, 应欢, 王东辉, 侯朝焕. 一种面向快速条件断点的代码优化与生成策略[J]. 微电子学与计算机, 2014, 31(4): 27-30,35.
引用本文: 朱浩, 应欢, 王东辉, 侯朝焕. 一种面向快速条件断点的代码优化与生成策略[J]. 微电子学与计算机, 2014, 31(4): 27-30,35.
ZHU Hao, YING Huan, WANG Dong-hui, HOU Chao-huan. A Novel Code Optimization and Generation Scheme Towards Fast Conditional Breakpoint[J]. Microelectronics & Computer, 2014, 31(4): 27-30,35.
Citation: ZHU Hao, YING Huan, WANG Dong-hui, HOU Chao-huan. A Novel Code Optimization and Generation Scheme Towards Fast Conditional Breakpoint[J]. Microelectronics & Computer, 2014, 31(4): 27-30,35.

一种面向快速条件断点的代码优化与生成策略

A Novel Code Optimization and Generation Scheme Towards Fast Conditional Breakpoint

  • 摘要: 提出了一种面向快速条件断点的代码优化与生成策略.将断点条件映射为布尔函数,并用有序二叉决策图进行描述,通过合并图中的冗余节点以及删除无关节点实现代码优化.在代码生成方面,通过对简化有序二叉决策图模型进行拓扑排序获取了子条件间的控制流信息,并通过查找已定义的指令模板实现了最终的代码输出.该方法已应用于自主研发的SuperV DSP处理器配套调试器上.

     

    Abstract: A novel code optimization and generation scheme towards fast conditional breakpoint is presented in this paper.In our approach,the break-condition of a conditional breakpoint is mapped onto a Boolean function.A reduced ordered binary decision diagram model is built up to describe the Boolean function through correlation analysis,redundant nodes incorporation and invalid nodes deletion.Thus,the code optimization is achieved.For the code generation,several special instruction templates are defined,and the topological sorting is implemented on this model to describe the control flow of sub-conditions in a break-condition.The interior nodes in this model are expanded to match up with the instruction templates.Additionally,branch instructions are inserted according to the control flow.

     

/

返回文章
返回