On Tue, Mar 20, 2012 at 12:40 PM, Antonio Cuni <anto.c...@gmail.com> wrote: > On 03/20/2012 12:51 PM, Peter Cock wrote: >> >> Next, using the Richards example (short but non-trivial), >> >> $ cd pypy/translator/goal >> $ python translate.py --run targetrichards.py > > I never heard of the --run option before :-)
It seems helpful - giving the PyPy vs Python numbers right there in one go. > You don't need it: just run translate.py targetrichards.py > and you'll get a targetrichards-c executable. Doing that all do get a testing_1.dylib file (Mach-O 64-bit dynamically linked shared library x86_64) under a temp folder. Where should this targetrichards-c executable be? Interestingly trying some of the other examples the binary is produced in the current directory: $ python2.6 translate.py targetreallynopstandalone.py ... [translation:info] created: /Users/pjcock/pypy-hg/pypy/translator/goal/targetreallynopstandalone-c [Timer] Timings: [Timer] annotate --- 2.0 s [Timer] rtype_lltype --- 0.2 s [Timer] backendopt_lltype --- 0.0 s [Timer] stackcheckinsertion_lltype --- 0.0 s [Timer] database_c --- 14.4 s [Timer] source_c --- 2.3 s [Timer] compile_c --- 1.3 s [Timer] ========================================= [Timer] Total: --- 20.2 s Peter _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev