Running a JIT in a Python interpreter
I'm debugging a JIT that's aborting during tracing for some strange reason. I remember several years ago someone here pointed me to a file in the code repo that showed how to run a RPython JIT in interpreted mode, so you can place a breakpoint in the jit hooks. I remember this being a great help last time I had this problem. Does anyone remember where that code is? Thanks! Timothy
Ah! Found it in the rtyper test code.
Timothy
On Thu, Dec 6, 2018 at 5:07 PM Timothy Baldridge
I'm debugging a JIT that's aborting during tracing for some strange reason. I remember several years ago someone here pointed me to a file in the code repo that showed how to run a RPython JIT in interpreted mode, so you can place a breakpoint in the jit hooks. I remember this being a great help last time I had this problem. Does anyone remember where that code is?
Thanks!
Timothy
-- “One of the main causes of the fall of the Roman Empire was that–lacking zero–they had no way to indicate successful termination of their C programs.” (Robert Firth)
Hi Timothy, that code is always super messy, but I've also been using it in various smaller interpreters (PyPy is too slow to translate to have it be useful). E.g. here is what Pycket has: https://github.com/pycket/pycket/blob/master/pycket/test/jit.py Cheers, Carl Friedrich On 07/12/2018 01:07, Timothy Baldridge wrote:
I'm debugging a JIT that's aborting during tracing for some strange reason. I remember several years ago someone here pointed me to a file in the code repo that showed how to run a RPython JIT in interpreted mode, so you can place a breakpoint in the jit hooks. I remember this being a great help last time I had this problem. Does anyone remember where that code is?
Thanks!
Timothy
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev
participants (2)
-
Carl Friedrich Bolz-Tereick
-
Timothy Baldridge