stack crawl w/MIPS compiler?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

stack crawl w/MIPS compiler?

1,750 Views
pgj
Contributor I
I'm trying to figure out how to obtain a stack trace programatically. I.e. I want to write a routine that can determine its caller, caller's caller, etc.

It appears that MIPS has no explicit frame pointer, which would make this a trival task. Is there support for this? Obviously the Metrowerks debugger can figure this out, but I need to do this within the application for diagnostics.

Thanks in advance,

/PGJ
Labels (1)
0 Kudos
1 Reply

213 Views
CompilerGuru
NXP Employee
NXP Employee
not sure if it helps, but check how C++ code implements throw.
Some implementations do actually traverse the stack with special datastructures provided by the compiler while others do build a dynamic data structure (which would not help you much). I dont know MIPS at all tough.

Daniel
0 Kudos