At 04:12 AM 11/11/2001 -0500, James Mastros wrote: >On Sat, 10 Nov 2001, Dan Sugalski wrote: > > At 01:39 PM 11/9/2001 -0800, Brent Dax wrote: > > >Dan Sugalski: > > >Of course. Random question only very tangentially related to this: is > > >INTVAL (and thus the I registers) supposed to be big enough to hold a > > >pointer? > > INTVAL shouldn't ever get a pointer in it. We're not going to be casting > > pointers to ints and back anywhere, except possibly in some of the > > deep'n'evil spots (like the memory allocator). >Correction (and please correct this correction if I'm wrong): >An INTVAL should never get a /native/ pointer in it. However, when we do >relitave or absolute jumps in parrot code, the destination is an INTVAL. > >Also, there's a good chance that PMC constants or non-constants may be at >some points native pointers, and it would probably help effinceny for >sizeof(INTVAL)==sizeof(PMC), no?
Nope. PMCs that hold pointers should stash them in the pointer slot of the PMC structure. (If I said we were requiring that to be a pointer to a PMC or a buffer structure, I relent--it must for GC, but if the PMC is tagged appropriately so the GC won't follow it, it can point to anything) Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk