Re: pdd03_calling_conventions.pod questions

2003-08-04 Thread Dan Sugalski
At 11:05 PM +0300 8/4/03, Vladimir Lipskiy wrote: I don't think I was reading pdd03_calling_conventions.pod in a slipshod manner and I swear that this place in the pod =item I1 The number of items pushed onto the parameter list. is the personification of confusion. Then I'll go clarify that. :) -

Re: pdd03_calling_conventions.pod questions

2003-08-04 Thread Vladimir Lipskiy
I don't think I was reading pdd03_calling_conventions.pod in a slipshod manner and I swear that this place in the pod >=item I1 > >The number of items pushed onto the parameter list. is the personification of confusion. > I1 ... Number of items in the overflow/parameter array P3. Hell yeah. Tha

Re: pdd03_calling_conventions.pod questions

2003-08-04 Thread Leopold Toetsch
Vladimir Lipskiy <[EMAIL PROTECTED]> wrote: >> > foo($var1, $var2, $var3, ... , $var23); >> >> I would expect I2=11, I1=12 > D'oh, I suspected it should be I2=11, I1=23. No. You have the first 11 parameters in P5..P15 (I2=11). Then you have 12 more, which go into the overflow array P3 (I1=12) >

Re: pdd03_calling_conventions.pod questions

2003-08-04 Thread Dan Sugalski
At 4:23 AM +0300 8/4/03, Vladimir Lipskiy wrote: Q1: Suppose I have the following call into a sub named "foo": foo($var1, $var2, $var3); What should I set in I1? Is it 3? Nope. I2 should be 3, and I1 0. (Assuming you put those three parameters in the first three PMC registers, which is what you

Re: pdd03_calling_conventions.pod questions

2003-08-04 Thread Vladimir Lipskiy
> First of all, are you targeting PASM or PIR? For the latter, its done > automatically. I mean PASM > > Q2: I'm calling without prototyping > > > foo($var1, $var2, $var3, ... , $var23); > > > Here, what should I place in I2? Is it 11 (as we have P5-P15) or > > 23 (considering the P3 register)

Re: pdd03_calling_conventions.pod questions

2003-08-04 Thread Leopold Toetsch
Vladimir Lipskiy <[EMAIL PROTECTED]> wrote: > Q1: Suppose I have the following call into a sub named "foo": First of all, are you targeting PASM or PIR? For the latter, its done automatically. > foo($var1, $var2, $var3); > foo($var1, @arr2, %hash3); > Is it still 3, since these aren't gonna be f