Re: [pypy-dev] PPC stacklet switching code

2015-10-14 Thread Vaibhav Sood
Thanks Armin! This helps me a lot, I will try this out Regards, Vaibhav -Original Message- From: armin.r...@gmail.com [mailto:armin.r...@gmail.com] On Behalf Of Armin Rigo Sent: Wednesday, October 14, 2015 7:30 PM To: Vaibhav Sood Cc: pypy-dev@python.org Subject: Re: [pypy-dev] PPC

Re: [pypy-dev] PPC stacklet switching code

2015-10-14 Thread Vaibhav Sood
...@gmail.com] On Behalf Of Armin Rigo Sent: Wednesday, October 14, 2015 7:38 PM To: Vaibhav Sood Cc: pypy-dev@python.org Subject: Re: [pypy-dev] PPC stacklet switching code Re-hi, Note another issue: the slp_switch() function, from gcc's point of view, does not call any other function.

Re: [pypy-dev] PPC stacklet switching code

2015-10-14 Thread Armin Rigo
Re-hi, Note another issue: the slp_switch() function, from gcc's point of view, does not call any other function. This means gcc will not produce the needed header/footer code. Look at switch_arm_gcc.h for the lengths we need to go through to make sure to save/restore everything and realign the

Re: [pypy-dev] PPC stacklet switching code

2015-10-14 Thread Armin Rigo
Hi Vaibhav, On Wed, Oct 14, 2015 at 11:26 AM, Vaibhav Sood wrote: > code to return back to the calling function slp_switch. However in between > the calling function’s stack content is overwritten by the g_restore_state > code (it memcpy’s the stored heap memory data to the stack) causing the > s