~ubuntu-branches/ubuntu/karmic/pypy/karmic

« back to all changes in this revision

Viewing changes to pypy/translator/goal/targetrichards.py

  • Committer: Bazaar Package Importer
  • Author(s): Alexandre Fayolle
  • Date: 2007-04-13 09:33:09 UTC
  • Revision ID: james.westby@ubuntu.com-20070413093309-yoojh4jcoocu2krz
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from pypy.translator.goal import richards
 
2
 
 
3
entry_point = richards.entry_point
 
4
 
 
5
# _____ Define and setup target ___
 
6
 
 
7
def target(*args):
 
8
    return entry_point, [int]
 
9
 
 
10
def get_llinterp_args():
 
11
    return [1]
 
12
 
 
13
# _____ Run translated _____
 
14
def run(c_entry_point):
 
15
    print "Translated:"
 
16
    richards.main(c_entry_point, iterations=500)
 
17
    print "CPython:"
 
18
    richards.main(iterations=5)
 
19
 
 
20