[Python-compilers] Developing a Python JIT and have troubld

Antoine Pitrou antoine at python.org
Sat Apr 1 05:30:23 EDT 2017


Le 01/04/2017 à 11:20, Yuheng Zou a écrit :
> 
> To be more specific, I first implement an EvalFrame function, which is a
> simple call of _PyEval_EvalFrameDefault. I compile this function into a
> .so file. Then in Python/pylifecycle.c, I use dlsym to get the EvalFrame
> function to replace the function interp->eval_frame. So each time when
> interp->eval_frame(default as _PyEval_EvalFrameDefault) is called, what
> is really called is my EvalFrame function. This seems should be fine,
> but it doesn't work.

What do you mean with "it doesn't work"?  What Python code are you
executing?  Have you tried printing out other details of the frame?
e.g. its code object and filename.

> It will give an error message, and the python.exe target cannot run.

What is the error message?

Regards

Antoine.


More information about the Python-compilers mailing list