Hi Cesare, On Tue, Jan 26, 2010 at 12:29 AM, Cesare Di Mauro <cesare.di.ma...@gmail.com> wrote: > Hi Collin, > > One more question: is it easy to support more opcodes, or a different opcode > structure, in Unladen Swallow project?
I assume you're asking about integrating WPython. Yes, adding new opcodes to Unladen Swallow is still pretty easy. The PEP includes a section on this, http://www.python.org/dev/peps/pep-3146/#experimenting-with-changes-to-python-or-cpython-bytecode, though it doesn't cover something more complex like converting from bytecode to wordcode, as a purely hypothetical example ;) Let me know if that section is unclear or needs more data. Converting from bytecode to wordcode should be relatively straightforward, assuming that the arrangement of opcode arguments is the main change. I believe the only real place you would need to update is the JIT compiler's bytecode iterator (see http://code.google.com/p/unladen-swallow/source/browse/trunk/Util/PyBytecodeIterator.cc). Depending on the nature of the changes, the runtime feedback system might need to be updated, too, but it wouldn't be too difficult, and the changes should be localized. Collin Winter _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com