develooper Front page | perl.perl5.porters | Postings from April 2007

Re: PL_markstack_ptr, sp, and all that

Thread Previous | Thread Next
From:
Tim Bunce
Date:
April 26, 2007 09:30
Subject:
Re: PL_markstack_ptr, sp, and all that
Message ID:
20070426162950.GG11416@timac.local
On Thu, Apr 26, 2007 at 06:14:24PM +0200, Gerard Goossen wrote:
> On Thu, Apr 26, 2007 at 05:03:47PM +0100, Tim Bunce wrote:
> > Is there a nice clear explanation somewhere of how perl internals use
> > the mark stack for passing and returning values to and from subs?
> > 
> > I'm rusty on it and want to be sure I'm doing the right thing in the
> > DBI dispatch code when it's calling callbacks.
> > 
> > I vaguely recall someone doing a nice diagram, but that might just be
> > wishful thinking on my part.
> 
> http://gisle.aas.no/perl/illguts/
> 
> I think you recalled that one, it has some nice diagrams :)

Ohh, yes. Very nice. The stacks section don't cover XS code specifically
(e.g., the role of the ax variable) but it's a big help.

Thanks!

Tim.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About