[perl #41788] [BUG] Real registers are limited to 2 digits

Will Coleda via RT parrotbug-followup at parrotcode.org
Tue May 12 15:40:14 UTC 2009


On Mon Dec 01 00:21:08 2008, julianalbo wrote:
> > Currently, IMCC still has a 2-digit limit for PASM registers.
> > I think we can easily extend this to any number, as long as it fits 
in
> > an INTVAL.
> 
> Last time I checked, register allocator and some other imcc parts used
> unsigned char for register numbers in several places.
> 

This seems to have been fixed for PIR, but not PASM; since PASM 
registers are no longer guaranteed to map to ``physical'' parrot 
registers, the same fix should probably be applied there.

e.g. PASM that fails:
 new P999, 'Integer'
 assign P999,3
 say P999
end

PIR that works:
.sub main
      
$P9999999999999999999999999999999999999999999999999999999999999999999999
99
999999999999999999999999999999999999999999999999999999999999999999999999
999999 =
 new 'Integer'
      
$P9999999999999999999999999999999999999999999999999999999999999999999999
99
999999999999999999999999999999999999999999999999999999999999999999999999
999999 =
 3
  say 
$P9999999999999999999999999999999999999999999999999999999999999999999999
99
999999999999999999999999999999999999999999999999999999999999999999999999
999999
.end



-- 
Will "Coke" Coleda


More information about the parrot-dev mailing list