Hi again,

Has anyone got any experience applying the threaded code patch to Python 2.6?
http://bugs.python.org/issue4753

Apparently it changes the eval loop to uses threaded code instead of
table lookups or something like that and can make the interpreter
execute 10-20% faster on most platforms. Only works in gcc because it
requires gcc's labels as values extension.

Anyway, I'm trying to get this working and have applied the
threadedceval5.patch patch. I don't really know much about diff/patch,
so maybe I'm doing it wrong.. I'm not sure if I need the other files
or what. The patch seems to have worked fine, but when compiling
Python (2.6.1) I get this error:

Python/ceval.c: In function 'PyEval_EvalFrameEx':
Python/ceval.c:1057: error: '_Py_TracingPossible' undeclared (first
use in this function)
Python/ceval.c:1057: error: (Each undeclared identifier is reported only once
Python/ceval.c:1057: error: for each function it appears in.)
Python/opcode_targets.h:149: error: label 'TARGET_MAP_ADD' used but not defined
Python/opcode_targets.h:148: error: label 'TARGET_SET_ADD' used but not defined
Python/opcode_targets.h:147: error: label 'TARGET_LIST_APPEND' used
but not defined
Python/opcode_targets.h:136: error: label 'TARGET_MAKE_CLOSURE' used
but not defined
Python/opcode_targets.h:134: error: label 'TARGET_MAKE_FUNCTION' used
but not defined
Python/opcode_targets.h:132: error: label 'TARGET_RAISE_VARARGS' used
but not defined

followed by more undefined labels.
Python/opcode_targets.h is just a big table of opcodes, the opcodes
being the TARGET_* labels, but they don't seem to be defined any
place.

Has anyone successfully got this working? If yes, what am I doing wrong?

Thanks!!
Dan.

-- 
Daniel Kersten.
Leveraging dynamic paradigms since the synergies of 1985.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Python Ireland" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to