Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #39706] [TODO] IMCC Change the type of register number from unsigned char to unsigned int or unsingned long

0 views
Skip to first unread message

Vishal Soni

unread,
Jul 4, 2006, 3:22:43 AM7/4/06
to bugs-bi...@rt.perl.org
# New Ticket Created by Vishal Soni
# Please include the string: [perl #39706]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=39706 >


The Register Number are declare of type unsigned char in IMCC
(compilers/imcc/pcc.c). This will result in a parrot context not having more
that 256 register of a given type (I,N,S,P).
There is also logic that assumes that the max number of registers is 256.

e.g. (compilers/imcc/pcc.c)
static int
pcc_reg_mov(Interp *interpreter, unsigned char d, unsigned char s,
void *vinfo)


Parrot requires to support unbounded number of register (unsigned int might
type might be good enough).


--
Thanks,
Vishal

0 new messages