[pypy-svn] r60643 - pypy/extradoc/talk/ecoop2009/benchmarks
antocuni at codespeak.net
antocuni at codespeak.net
Sat Dec 20 17:01:37 CET 2008
Author: antocuni
Date: Sat Dec 20 17:01:36 2008
New Revision: 60643
Added:
pypy/extradoc/talk/ecoop2009/benchmarks/accumulator.tlc.src
- copied unchanged from r60533, pypy/branch/oo-jit/pypy/jit/tl/accumulator.tlc.src
pypy/extradoc/talk/ecoop2009/benchmarks/factorial.tlc.src
pypy/extradoc/talk/ecoop2009/benchmarks/fibo.tlc.src
- copied unchanged from r60525, pypy/branch/oo-jit/pypy/jit/tl/fibo.tlc.src
Log:
add tlc sources for the benchmarks
Added: pypy/extradoc/talk/ecoop2009/benchmarks/factorial.tlc.src
==============================================================================
--- (empty file)
+++ pypy/extradoc/talk/ecoop2009/benchmarks/factorial.tlc.src Sat Dec 20 17:01:36 2008
@@ -0,0 +1,21 @@
+ PUSH 1 # accumulator
+ PUSHARG
+
+start:
+ PICK 0
+ PUSH 1
+ LE
+ BR_COND exit
+
+ SWAP
+ PICK 1
+ MUL
+ SWAP
+ PUSH 1
+ SUB
+ PUSH 1
+ BR_COND start
+
+exit:
+ POP
+ RETURN
More information about the Pypy-commit
mailing list