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

Re: Sizes, again.

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
October 1, 2001 16:16
Subject:
Re: Sizes, again.
Message ID:
5.1.0.14.2.20011001191451.021cdaa0@pop.sidhe.org
At 11:28 AM 9/30/2001 -0400, Bryan C. Warnock wrote:
>On Sunday 30 September 2001 11:14 am, Gregor N. Purdy wrote:
> > The stuff I'm about to check in that allows NVs to move to the constant
> > table is set up to also allow IVs to live there, too. I haven't made
> > the assembler and the ops do that yet, but it is possible. I thought we
> > were going to have sizeof(IV) == sizeof(OP), and handle larger integers
> > via PMCs. But if we are going to have the possiblity that sizeof(IV) !=
> > sizeof(OP), then we probably do need to move IV constants out of the
> > bytecode stream.
>
>Well, we recently went to all the trouble to decouple opcodes from IVs - I
>assume for a reason.  Do we want to undo that, or move them into the
>constant table?

Nope.

>If you re-couple the sizes, then you're pretty much committing to 64-bit
>opcodes, since you'll invariably want 64-bit IVs on platforms that support
>it.

We guarantee integer constants that are no bigger than 32 bits can be 
embedded in the opcode stream. Since opcode_t is at least 32 bits this is OK.

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


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