Re: Symbolic vs Named variable register allocation

2003-12-10 Thread Pete Lomax
>At 03:01 PM 12/3/2003 +0100, Leopold Toetsch wrote: >>Pete Lomax <[EMAIL PROTECTED]> wrote: >> > The following demonstrates that $I1 and .local int i map to the same >> > register in the output pasm code: >> >>Yep. The problem seems to be the backward branch. When you put the >>"test" sub after th

Re: Symbolic vs Named variable register allocation

2003-12-03 Thread Melvin Smith
At 03:01 PM 12/3/2003 +0100, Leopold Toetsch wrote: Pete Lomax <[EMAIL PROTECTED]> wrote: > The following demonstrates that $I1 and .local int i map to the same > register in the output pasm code: Yep. The problem seems to be the backward branch. When you put the "test" sub after the "end" op, its

Re: Symbolic vs Named variable register allocation

2003-12-03 Thread Leopold Toetsch
Pete Lomax <[EMAIL PROTECTED]> wrote: > The following demonstrates that $I1 and .local int i map to the same > register in the output pasm code: Yep. The problem seems to be the backward branch. When you put the "test" sub after the "end" op, its working fine. leo

Symbolic vs Named variable register allocation

2003-12-03 Thread Pete Lomax
The following demonstrates that $I1 and .local int i map to the same register in the output pasm code: .sub _main goto L1 test: $I1 = 1 ret L1: .local int i i = 2 call test print i # prints 1, not 2 end .end parrot -o - t.imc shows: