Re: IMCC Register mapping

2004-11-22 Thread Leopold Toetsch
William Coleda <[EMAIL PROTECTED]> wrote: > Is it worth trying to optimize the mapping of $P2 to P5 there to avoid > the extra assignment? possible? "parrot -Oc" did that until a few days ago. It was broken. The problem arises with code like: foo(a,b) # P5, P6 foo(b,a) # P6, P5 dif

Re: IMCC Register mapping, tracing leaving subroutines.

2004-11-22 Thread William Coleda
Huh. That's annoying. attached trace for readability. William Coleda wrote: 0 set P16, PMC_C[2]- P16=PMCNULL, 3 set I0, 1- I0=0, 6 set I1, 0- I1=0, 9 set I2, 0- I2=0, 12 set I3, 0- I3=1, 15 set I4, 0- I4=0, 18 s

IMCC Register mapping

2004-11-22 Thread William Coleda
Given IMC like: .sub main @MAIN $P1 = whee() print $P1 .end .sub whee $P2 = new PerlString $P2 = "leo\n" .return ($P2) .end We get a trace like: 0 set P16, PMC_C[2]- P16=PMCNULL, 3 set I0, 1- I0=0, 6 set I1, 0- I1=0, 9 set I2, 0- I2=0, 1