[pypy-svn] r15360 - pypy/dist/pypy/translator/goal

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Jul 29 18:01:48 CEST 2005


Author: cfbolz
Date: Fri Jul 29 18:01:46 2005
New Revision: 15360

Added:
   pypy/dist/pypy/translator/goal/llinterpret.tmp
Log:
this file contains the incantation needed to run the flowgraph of
targetpypymain in llinterp. to use it paste the lines into pdb.


Added: pypy/dist/pypy/translator/goal/llinterpret.tmp
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/translator/goal/llinterpret.tmp	Fri Jul 29 18:01:46 2005
@@ -0,0 +1,13 @@
+
+import code; code.interact(local=locals())
+
+import py
+
+from pypy.rpython.llinterp import LLInterpreter
+from pypy.rpython import rstr
+if not log:
+    py.log.setconsumer("llinterp operation", None)
+
+ll_str = rstr.string_repr.convert_const("app_example.py")
+interp = LLInterpreter(t.flowgraphs, t.rtyper)
+interp.eval_function(entry_point, [ll_str])



More information about the Pypy-commit mailing list