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

Re: Variable registers

Thread Previous | Thread Next
Leopold Toetsch
October 1, 2005 09:55
Re: Variable registers
Message ID:

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


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About