首页> 外国专利> DYNAMIC SOFTWARE CODE INSTRUMENTATION METHOD AND SYSTEM

DYNAMIC SOFTWARE CODE INSTRUMENTATION METHOD AND SYSTEM

机译:动态软件代码指令化方法及系统

摘要

A method and system of monitoring code after being compiled or assembled is provided. Software code instructions, such as a function preamble and/or a data manipulation instruction, are identified using debug information and then dynamically replaced with an instruction that will branch execution to a scratchpad buffer. A routine is inserted into the scratchpad buffer, and includes instruction(s) to generate output to a trace buffer. Subsequent instructions in the scratchpad may execute the replaced instruction(s) and branch back to the address of the program code immediately following the original address of the replaced instruction.
机译:提供了一种在编译或汇编之后监视代码的方法和系统。使用调试信息识别软件代码指令(例如功能前导码和/或数据操作指令),然后将其动态替换为将执行转移到暂存器缓冲区的指令。例程被插入暂存器缓冲区,并且包括一条指令以生成到跟踪缓冲区的输出。暂存器中的后续指令可以执行被替换的指令,并紧接着被替换的指令的原始地址分支回到程序代码的地址。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号