Re: [perl #23186] [PATCH] adding yield semantics to IMCC

2003-08-02 Thread Leopold Toetsch
Kenneth Graves wrote: From: Leopold Toetsch [EMAIL PROTECTED] [ optimized register allocation ] Is there a stub of this functionality in the code somewhere? (Or some notes about how it might be approached?) No, not yet. Currently local variables (and parameters if a sub calls another sub)

Re: [perl #23186] [PATCH] adding yield semantics to IMCC

2003-08-01 Thread Leopold Toetsch
Kenneth A Graves [EMAIL PROTECTED] wrote: The .pcc_* directives are working for me in terms of implementing function calls. I want to do something similar for iterator calls. I've decided to implement iterators using coroutines. I have applied it. The test program foo.pir is now a test in

Re: [perl #23186] [PATCH] adding yield semantics to IMCC

2003-08-01 Thread Leopold Toetsch
Kenneth A Graves [EMAIL PROTECTED] wrote: Inside the iterator, there are three differences compared to a function: 1) Every register in use needs to be saved to the user stack. (Anyone have a clean way to do this?) Its the same thing as calling a subroutine in the first place. Imcc has to

Re: [perl #23186] [PATCH] adding yield semantics to IMCC

2003-08-01 Thread Kenneth Graves
From: Leopold Toetsch [EMAIL PROTECTED] Date: Fri, 1 Aug 2003 14:50:05 +0200 Kenneth A Graves [EMAIL PROTECTED] wrote: Inside the iterator, there are three differences compared to a function: 1) Every register in use needs to be saved to the user stack. (Anyone have a clean

[perl #23186] [PATCH] adding yield semantics to IMCC

2003-07-31 Thread via RT
# New Ticket Created by Kenneth A Graves # Please include the string: [perl #23186] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23186 The .pcc_* directives are working for me in terms of implementing function

Re: [perl #23186] [PATCH] adding yield semantics to IMCC

2003-07-31 Thread Leopold Toetsch
Kenneth A Graves (via RT) wrote: The .pcc_* directives are working for me in terms of implementing function calls. I want to do something similar for iterator calls. I've decided to implement iterators using coroutines. Seems very well done and clean to me. Albeit further comments of lanugage