由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - stack trace
相关主题
请问Visual C++里这个link的错误要怎么解决?面试C/C++该怎么准备?
tracing和logging有什么区别?各位高手给个面试C++/C的面试题吧
How are parameters passed between ANSI C subroutines?为什么大家都说c++水很深?
大家都用什么工具来profile C/C++程序C++的库
gcc 4.3(or +) on Mac OS 10.6简述一下常见语言的缺点
glibc questionThis slideshow answers most question about C (and some C++), esp Undefined behaviors.
recommend assembly code from gccunsigned long long
再请教个:C变长参数的传递问题 (转载)问个c++ struct和指针问题
相关话题的讨论汇总
话题: stack话题: bp话题: trace话题: return话题: mips
进入Programming版参与讨论
1 (共1页)
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.

1 (共1页)
进入Programming版参与讨论
相关主题
问个c++ struct和指针问题gcc 4.3(or +) on Mac OS 10.6
Is Android "true" open source? Yes, and Google may not likglibc question
请xiaoju和digua来讲讲COM技术吧recommend assembly code from gcc
How to encode YYYY-MM-DD?再请教个:C变长参数的传递问题 (转载)
请问Visual C++里这个link的错误要怎么解决?面试C/C++该怎么准备?
tracing和logging有什么区别?各位高手给个面试C++/C的面试题吧
How are parameters passed between ANSI C subroutines?为什么大家都说c++水很深?
大家都用什么工具来profile C/C++程序C++的库
相关话题的讨论汇总
话题: stack话题: bp话题: trace话题: return话题: mips