summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorLudovic Courtes <ludovic.courtes@laas.fr>2005-06-25 03:13:56 +0000
committerLudovic Courtès <ludo@gnu.org>2008-04-25 19:09:30 +0200
commit0b5f0e49a8b172544e2a7cb564c01c2ec439aaec (patch)
tree42265eb157f9bd5869eccfc93e395f9fed89b2bf /benchmark
parent6208295910a6fab78228b8255ed56ccd089bd5f0 (diff)
* src/objcodes.c (make_objcode_by_mmap): Fixed the error type when the
object file is too small. * doc/guile-vm.texi: Documented `make-closure'. Improved the documentation of `load-program'. * testsuite: New directory. * configure.in: Added `testsuite/Makefile' to `AC_OUTPUT'. * Makefile.am (SUBDIRS): Added `testsuite'. * src/vm_engine.h (VM_CHECK_OBJECT): New option. (CHECK_OBJECT): New macro. * src/vm_system.c (object-ref): Use VM_CHECK_OBJECT. * module/system/vm/assemble.scm (preprocess): Commented out the debugging code. * benchmark/lib.scm (do-loop): New procedure. git-archimport-id: lcourtes@laas.fr--2005-mobile/guile-vm--mobile--0.6--patch-2
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/lib.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/benchmark/lib.scm b/benchmark/lib.scm
index 31e524453..d46e00ca9 100644
--- a/benchmark/lib.scm
+++ b/benchmark/lib.scm
@@ -99,6 +99,13 @@
0
(loopi (1- n)))))
+(define (do-loop n)
+ ;; Same as `loop' using `do'.
+ (do ((i n (1- i)))
+ ((= 0 i))
+ ;; do nothing
+ ))
+
(define (do-cons x)
;; This one shows that the built-in `cons' instruction yields a significant