[pypy-svn] r7210 - pypy/trunk/src/goal

arigo at codespeak.net arigo at codespeak.net
Thu Nov 11 11:25:45 CET 2004


Author: arigo
Date: Thu Nov 11 11:25:45 2004
New Revision: 7210

Modified:
   pypy/trunk/src/goal/translate_pypy.py
Log:
- fixed a bug with the debugging support :-)
- try (unsuccessfully so far, of course) to generate C code instead of Pyrex.


Modified: pypy/trunk/src/goal/translate_pypy.py
==============================================================================
--- pypy/trunk/src/goal/translate_pypy.py	(original)
+++ pypy/trunk/src/goal/translate_pypy.py	Thu Nov 11 11:25:45 2004
@@ -20,11 +20,11 @@
 # __________  Main  __________
 
 def analyse(entry_point=entry_point):
+    global t
     t = Translator(entry_point, verbose=True, simplifying=True)
     space = StdObjSpace()
     a = t.annotate([annmodel.immutablevalue(space)])
     a.simplify()
-    return t
 
 
 if __name__ == '__main__':
@@ -80,9 +80,10 @@
         pdb.post_mortem(tb)
 
     try:
-        t = analyse()
+        analyse()
         print '-'*60
-        t.compile()
+        print 'Generating C code...'
+        t.ccompile()
     except:
         debug()
     else:



More information about the Pypy-commit mailing list