Simon Cozens <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 06, 2001 at 02:35:53PM +0100, Dave Mitchell wrote:
> > The Perl equivalent $a = $a + $a*$b requires a
> > temporary PMC to store the intermediate result ($a*$b)
>
> Probably a temporary INT or NUM register, in fact. But I see
> your point. I wouldn't be surprised if some of the PMC registers
> had spare PMCs knocking around to store this kind of thing.
espcially as most vtable methods (eg mult) work on PMCs and return
PMCs - or rather than returning PMCs, they expect the address of an existing
PMC which they can scribble on with their result.
So I guess I'm asking whether we're abandoning the Perl 5 concept
of a pad full of tmp targets, each hardcoded as the target for individual
ops to store their tmp results in.
If a certain number of PMC regs are 'hardcoded' with pointers to
PMC tmps, then we need to address register overflow, eg an expression like
foo($x+1, $x+2, ...., $x+65);