On Wed, 12 Nov 2003, Leopold Toetsch wrote: > Dan Sugalski <[EMAIL PROTECTED]> wrote: > > [ I,N,S counts ] > > > 6) Note that non-PMC counts only need to be filled in if we're marked > > "prototyped" > > Again, this is IMHO unneeded or at least suboptimal. The caller has 3 > more instructions. And what should the assembler generate for the > callee? > > if I1 == 0 goto no_iparam > # I5 is valid > no_iparam: # now what
You pitch an exception. > When this is for some vararg stuff, it's by far simpler to check one > param count, then to have 4 counts. > > All possible speedup is probably gone, when there are expensive runtime > checks. Not when you're trading arg counts for PMC construction it isn't, no. Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk