[M3devel] SaveRegsInStack

Tony Hosking hosking at cs.purdue.edu
Sat Nov 21 23:02:23 CET 2009


On 21 Nov 2009, at 15:38, Jay K wrote:

> Tony, it bugs me that we have three copies of this code.
> Would it be reasonable and not very inefficient
> and maybe somewhat portable to replace it with
> setjmp or getcontext or alloca(1)?

No, those don't have the desired effect on SPARC.

>  Or can we go back to having RTStack call RTMachine?
> (Imagine if SPARC* all had stack walkers, though I
> doubt that will happen, other than via libunwind.)

Why wouldn't SPARC* all have stack walkers?  Their stack frames are trivial to unwind.
I agree that it is annoying to have multiple copies of this code.  It would be good to have it in one place for *all* SPARC targets.  Where to put it?

>  
> 
>  - Jay
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20091121/acf5fab9/attachment-0002.html>


More information about the M3devel mailing list