Dan Sugalski <[EMAIL PROTECTED]> wrote:

> The translation for a number of the python ops depends on whether
> we're going with runtime stack action or compile-time stack->register
> translations.

My experiments[1] show that the latter should be doable, the more because
...

> BINARY_<op>:
>    restore $Px; restore $Py; new $Pz, Undef; $Pz = $Py <op> $Px; save $Pz

... will definitely kill performance.

> BINARY_FLOOR_DIVIDE:

New (MMD) vtable?

> PRINT_ITEM: restore Px; print Px | print Px

No. Fancy stuff with inserted spaces. See the <print_*> opcodes in
python.ops.

leo

[1] languages/python/pie-thon.pl

Reply via email to