Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Symbolic vs Named variable register allocation
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pete Lomax  
View profile  
 More options Dec 3 2003, 8:48 am
Newsgroups: perl.perl6.internals
From: petelo...@blueyonder.co.uk (Pete Lomax)
Date: Wed, 03 Dec 2003 12:58:53 +0000
Local: Wed, Dec 3 2003 7:58 am
Subject: Symbolic vs Named variable register allocation
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:
_main:
        branch L1
test:
        set I16, 1
        ret
L1:
        set I16, 2
        bsr test
        print I16
        end

Is this a bug, or am I missing something?

Pete
PS this happens on pow builds 0.0.11 (20/09/03), and 15/11/03
Pete
http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.