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

ale at codespeak.net ale at codespeak.net
Tue Oct 11 20:06:11 CEST 2005


Author: ale
Date: Tue Oct 11 20:06:09 2005
New Revision: 18432

Modified:
   pypy/dist/pypy/translator/goal/targetnopstandalone.py
   pypy/dist/pypy/translator/goal/targetrichards.py
Log:
A little temp  change 


Modified: pypy/dist/pypy/translator/goal/targetnopstandalone.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetnopstandalone.py	(original)
+++ pypy/dist/pypy/translator/goal/targetnopstandalone.py	Tue Oct 11 20:06:09 2005
@@ -1,13 +1,15 @@
 import os, sys
+from pypy.translator.test.snippet import sieve_of_eratosthenes as soe
 
 def debug(msg): 
     os.write(2, "debug: " + msg + '\n')
+   
 
 # __________  Entry point  __________
 
 def entry_point(argv):
-    debug("done!")
-    return 0
+    count = soe()
+    return count
 
 # _____ Define and setup target ___
 

Modified: pypy/dist/pypy/translator/goal/targetrichards.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetrichards.py	(original)
+++ pypy/dist/pypy/translator/goal/targetrichards.py	Tue Oct 11 20:06:09 2005
@@ -1,7 +1,9 @@
 from pypy.translator.goal import richards
+from pypy.translator.tool.taskengine import SimpleTaskEngine
 
 entry_point = richards.entry_point
 
+
 # _____ Define and setup target ___
 
 def target(*args):
@@ -18,3 +20,34 @@
     richards.main(iterations=5)
 
     
+class Tasks(SimpleTaskEngine):
+
+    def task_annotate(self):
+        pass
+    task_annotate.task_deps = []
+
+    def task
+
+
+""" sketch of tasks for translation:
+
+annotate:  # includes annotation and annotatation simplifications
+
+rtype: annotate
+
+backendoptimisations: rtype # make little sense otherwise
+
+source_llvm: backendoptimisations, rtype, annotate
+
+source_c: ?backendoptimisations, ?rtype, ?annotate
+
+compile_c : source_c
+
+compile_llvm: source_llvm
+
+run_c: compile_c
+
+run_llvm: compile_llvm
+
+"""
+ 



More information about the Pypy-commit mailing list