On Tue, Jun 12, 2001 at 06:12:35PM -0400, Dan Sugalski wrote:
> At the moment I'm leaning towards the functions doing their own decoding, 
> as it seems likely to be faster. (Though we'd be duplicating the decoding 
> logic everywhere, and bigger's reasonably bad) Possibly mandating shadow 
> functions for each opcode function, where the shadow does the decoding and 
> calls the real functions which take real things rather than our registers.
> 
> Opinions anyone?

I'd say that choosing the more complicated way because it seems to
be faster is almost always a bad idea.  What was that quote about
premature optimization?

A major advantage to putting the decoding in the main loop to start
with, at least, is that it makes it easier to perform major surgery
on the overall opcode design without needing to touch every op.
I don't know how likely such surgery is.

                        - Damien

Reply via email to