July 14, 2004

Plan B

Okay, trusting that Leo's right and the python engine's good about not leaving things on the stack at label boundaries, I've reworked the architecture of the translator program. A new version's up, and I'll explain later. (Though it's probably reasonably obvious what it does) It won't run, but adding in new python bytecode processing ops is trivial and, happily, diff/patch able. (nudge, nudge :)

I fully expect to be poking at this as I go along, but feel free to do so too.

Posted by Dan at July 14, 2004 11:37 PM | TrackBack (0)

At label boundaries yes, but note that the
default code generator does leave items on the
stack at function exit (possibly also in
exception blocks, I forget). At least, it did
last time I looked into it.

Posted by: Daniel Dunbar at July 15, 2004 07:14 AM

Function boundaries and exception blocks are OK--those I expected, since the return values have to go somewhere, which is fine.

Posted by: Dan at July 15, 2004 08:22 AM