develooper Front page | perl.perl6.internals | Postings from October 2005

Re: Variable registers

Thread Previous | Thread Next
From:
Leopold Toetsch
Date:
October 1, 2005 09:55
Subject:
Re: Variable registers
Message ID:
bf6e561b06bff548cd05b9e2e496e848@toetsch.at

On Oct 1, 2005, at 18:11, Klaas-Jan Stol wrote:

> ah I thought so. just making sure. Then another question WRT this; 
> will there be a register allocator? In other words, an attempt to 
> minimize the number of needed registers? (in my simple code generator 
> implementations, any time I need a new register, I just increment a 
> counter, and use that, so in that case there is  No register 
> allocation scheme)

Sure, the register allocator will remain. The "increment the counter" 
strategy is fine. The only difference will be that all lexicals and 
persistent variables, which are used around a function call, will be 
assigned to distinct Parrot registers. This strategy will solve the 
still lurking continuation bug that was discussed excessively here. 
Temps, not used around a function call, will have their registers 
reused as now.

> regards,
> klaas-jan

leo


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About