发明授权
US06732355B1 Method and device for generating registration data at compilation to enable trace of stack 有权
用于在编译时生成注册数据以启用堆栈跟踪的方法和设备

  • 专利标题: Method and device for generating registration data at compilation to enable trace of stack
  • 专利标题(中): 用于在编译时生成注册数据以启用堆栈跟踪的方法和设备
  • 申请号: US09493763
    申请日: 2000-01-28
  • 公开(公告)号: US06732355B1
    公开(公告)日: 2004-05-04
  • 发明人: Takeshi Ogasawara
  • 申请人: Takeshi Ogasawara
  • 优先权: JP11-021942 19990129
  • 主分类号: G06F944
  • IPC分类号: G06F944
Method and device for generating registration data at compilation to enable trace of stack
摘要:
To provide a method for enabling a trace of a stack even without the base pointer. When compiling a subroutine, a stack pointer (SP) change table is created and registered with a subroutine together with an initial frame size, the table recording a pair of an address of a code and the amount of change in the stack pointer from the initial frame size, the code causing an address of the stack pointer to be changed, and a thread is caused to pause at a stack tracing time to calculate the be address of the frame from an address of the initial frame, an execution restarting address in this frame and the SP change table registered with a subroutine corresponding to this address and the initial frame size, and thus a trace of a stack is performed.
信息查询
0/0