Brian Wheeler:
# I've got a dumb question, and its probably because I've not
# been paying
# attention, so I apologise in advance.
#
# How does a program access more than 32 variables simultaneously?  In
# real CPU architectures you've got main memory storage, but
# here we only
# have registers.

Well, all real variables in use will be PMCs, and symbol table
management is built in to Parrot.  ([INS] registers are just used to
avoid the indirections of a PMC's vtable and make some operations
faster.)  There's an opcode like:

        find_global Px, "name"

which fetches the global variable "name" and puts it into Px, and a
similar one for lexicals.

--Brent Dax
[EMAIL PROTECTED]
Configure pumpking for Perl 6

When I take action, I’m not going to fire a $2 million missile at a $10
empty tent and hit a camel in the butt.
    --Dubya

Reply via email to