On Wed, May 6, 2009 at 3:23 PM, Mark Glines <[email protected]> wrote: > Nick Kostirya wrote: >> Hello. >> >> I have an inherited PASM code from 2004, but modern PASM doesn't have some >> operations. > > And you might want to consider converting to PIR in any case. > > >> Will you please tell me what can be used instead of savetop and restoretop? > > savetop/restoretop/saveall/restoreall were deprecated in 2008. See > http://rt.perl.org/rt3//Public/Bug/Display.html?id=52842 , > http://groups.google.com/group/perl.perl6.internals/msg/8f729cd4ba81d5fe , > http://www.nntp.perl.org/group/perl.perl6.internals/2006/02/msg33138.html > . If I understand it correctly, the replacement is to use an explicit > ResizablePMCArray (or one of its friends) instead of using an implicit > stack. > > >> As I understand invokecc saves and restores register when calling Sub PMC, >> but not when calling Continuation PMC. Isn't it? > > I think so. I tend to think of calling a Continuation PMC as a form of > returning, actually, so it restores registers but I doubt it bothers to > save any registers. > > >> And one more question: a .ppc_sub - PASM or PIR directive? > > I'm unable to find any "ppc_sub" relating to parrot. If you mean > "pcc_sub", it looks to be used in PASM. >
In PASM mode, you can use the .pcc_sub directive to indicate any Parrot sub flags, such as :init, :load etc. to that sub. It's used like this: .pcc_sub [flags]* some_label: ... in PIR mode, OTOH, you would use this: .sub some_label [flags]* ... .end cheers, kjs _______________________________________________ http://lists.parrot.org/mailman/listinfo/parrot-dev
