At 06:58 PM 8/25/2001 +0100, Simon Cozens wrote:
>On Sat, Aug 25, 2001 at 10:37:35AM -0400, Dan Sugalski wrote:
> > I'm currently thinking of using .pasm as the extension for parrot assembly
> > code, and .pbc for precompiled bytecode. (Yes, the interpreter loads and
> > runs compiled bytecode from disk. Wheee!) Can anyone think of anything
> > better? They seem rather lame. (Bonus points for clever acronyms gotten
> > without strain, or puns in any human language)
>
>I was using .pas and .pac. Gotta think about 8.3ness, unfortunately.

Well, they're still unique with the end character chopped off. And I'm not 
sure we're going to want to be completely hobbled by 8.3 filenames. At some 
point we need to figure out base levels of functionality we're going to 
expect from the core platforms and go from there.

>On an unrelated note, and seeing Dan Bryan's experiments with different
>kinds of switch/dispatch, I think it makes sense to separate out ops
>which correspond to PMC vtable functions (add, subtract, etc.) and those
>which don't. Those which do can be done with a switch to save a function
>call, and those which don't can use function pointers. This achieves
>the same objective as auto-generating op wrappers around vtable functions,
>(saving one level of indirection) while leveraging the gain from a 
>split-level op despatch loop.

I'm considering something even more evil.

While the current parrot source (and there is some, folks! :) does the full 
indirect table lookup, I'm figuring we're going to want to leave the 
decision of full indirect/switch+indirect to the platform config scripts.

Which is to say that the dispatch will look like:

    op = EXECUTE_OP(op);

and that might expand out to a table lookup on some platforms and a switch 
with the fallthrough doing a table lookup on others. If the opcode 
functions are only semi-specified and preprocessed (which I know they 
aren't now, but I wanted to get something working) we can rejig the source 
to get the best performance with a fancy source filter.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to