Method and device for generating registration data at compilation to enable trace of stack
AssigneeInternational Business Machines Corporation
InventorTakeshi Ogasawara
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorTakeshi Ogasawara
Estimating the term…
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.
A method for tracing a stack, said method comprising the steps of:
A storage medium, said storage medium bearing a tracer, said tracer being configured to carry out the steps of:
Dependencies are inferred from the claim text.