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

ericvrp at codespeak.net ericvrp at codespeak.net
Tue May 16 21:55:35 CEST 2006


Author: ericvrp
Date: Tue May 16 21:55:34 2006
New Revision: 27304

Modified:
   pypy/dist/pypy/translator/goal/bench-cronjob.py
Log:
Store (nightly benchmark) .ll, .bc and .s files into an archive directory for later inspection.


Modified: pypy/dist/pypy/translator/goal/bench-cronjob.py
==============================================================================
--- pypy/dist/pypy/translator/goal/bench-cronjob.py	(original)
+++ pypy/dist/pypy/translator/goal/bench-cronjob.py	Tue May 16 21:55:34 2006
@@ -47,11 +47,19 @@
     print cmd
     os.system(cmd)
 
+    cmd = "cp %s.c pypy/translator/goal/archive" % b
+    print cmd
+    os.system(cmd)
+
     cmd = "gcc %s.c -S -O3 -fomit-frame-pointer -o %s.s" % (b, b)
     print cmd
     os.system(cmd)
 
-    cmd = "gcc %s.s -static -lgc -lm -lpthread -pipe -o %s" % (b, b)
+    cmd = "cp %s.s pypy/translator/goal/archive" % b
+    print cmd
+    os.system(cmd)
+
+    cmd = "gcc %s.s -lgc -lm -lpthread -pipe -o %s" % (b, b) #XXX -static
     print cmd
     os.system(cmd)
 
@@ -70,11 +78,7 @@
     print cmd
     os.system(cmd)
 
-    #cmd = "as %s.s -o %s.o" % (b, b)
-    #print cmd
-    #os.system(cmd)
-
-    cmd = "gcc %s.s -static -lgc -lm -lpthread -pipe -o %s" % (b, b)
+    cmd = "gcc %s.s -lgc -lm -lpthread -pipe -o %s" % (b, b) #XXX -static
     print cmd
     os.system(cmd)
 
@@ -99,7 +103,6 @@
         translateoptions = ''
 
     os.chdir(homedir + '/projects/pypy-dist/pypy/translator/goal')
-    #os.system('cp ~/x/entry_point.ll %s/entry_point.ll' % tmpdir) #XXX
     os.system('/usr/local/bin/python translate.py --backend=%(backend)s%(featureoptions)s%(translateoptions)s --text --batch targetpypystandalone.py %(targetoptions)s 2>&1' % locals())
     os.system('mv %s/entry_point.ll %s/pypy.ll' % (tmpdir, tmpdir))
 



More information about the Pypy-commit mailing list