f**y 发帖数: 138 | 1 I know for x86 or IA64, BP[1] is the return address, BP[0] is the BP after
return. So we can print a stack trace with a do while loop.
How about a MIPS processor? It uses S8 & SP two registers to manage the
stack. Return address & previous stack pointer are stored in the stack with
offsets hard coded. Anybody knows a easy way to print the stack trace for a
MIPS processor? Thanks. | s*****y 发帖数: 897 | 2 You want to write a program to do so?
with
a
【在 f**y 的大作中提到】 : I know for x86 or IA64, BP[1] is the return address, BP[0] is the BP after : return. So we can print a stack trace with a do while loop. : How about a MIPS processor? It uses S8 & SP two registers to manage the : stack. Return address & previous stack pointer are stored in the stack with : offsets hard coded. Anybody knows a easy way to print the stack trace for a : MIPS processor? Thanks.
| t****t 发帖数: 6806 | 3 these stuff (calling convention, register allocation, etc) are called ABI.
just google it.
with
a
【在 f**y 的大作中提到】 : I know for x86 or IA64, BP[1] is the return address, BP[0] is the BP after : return. So we can print a stack trace with a do while loop. : How about a MIPS processor? It uses S8 & SP two registers to manage the : stack. Return address & previous stack pointer are stored in the stack with : offsets hard coded. Anybody knows a easy way to print the stack trace for a : MIPS processor? Thanks.
|
|