This website requires JavaScript.
Explore
Help
Sign in
dmbcs
/
guile
Watch
1
Star
0
Fork
You've already forked guile
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
e610dc3851
guile
/
testsuite
/
t-do-loop.scm
6 lines
111 B
Scheme
Raw
Normal View
History
Unescape
Escape
* 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
2005-06-25 03:13:56 +00:00
(
let
(
(
n+
0
)
)
(
do
(
(
n-
5
(
1
-
n-
)
)
(
n+
n+
(
1
+
n+
)
)
)
(
(
=
n-
0
)
)
Fixed a Scheme translation bug; cleaned compilation with GCC 4. * module/language/scheme/translate.scm (trans-pair): In the `set!' case, when a procedure-with-setter is passed, call `trans:pair' with an actual pair. This fixes a long-lasting bug which prevented compilation of `set!' statements with procedures-with-setter (this showed up when compiling `(system vm assemble)'). * module/system/base/compile.scm: Added `objcode->u8vector' to the `#:select' clause. * module/system/base/syntax.scm: Cosmetic changes. * module/system/vm/assemble.scm (preprocess): Removed debugging statements. * src/frames.c: Cosmetic changes. * src/frames.h (SCM_FRAME_SET_DYNAMIC_LINK): New. * src/objcodes.c: Use `scm_t_uint8' instead of `char' when relevant. * src/vm.c (vm_heapify_frames_1): Use `SCM_FRAME_SET_DYNAMIC_LINK ()'. * src/vm_loader.c: Added casts to mute GCC 4 warnings. * testsuite/run-vm-tests.scm (*scheme*): Renamed to `%scheme'. (run-test-from-file): Renamed to `compile/run-test-from-file'. (run-vm-tests): Run each test using both the VM and the interpreter; compare the results. * testsuite/t-proc-with-setter.scm: Try out `get/set'. * doc/Makefile.am (info_TEXINFOS): New. * doc/guile-vm.texi: Added index entries and indices. * doc/texinfo.tex: New file. git-archimport-id: lcourtes@laas.fr--2005-mobile/guile-vm--mobile--0.6--patch-5
2005-11-01 21:29:04 +00:00
(
format
#f
"n- = ~a~%"
n-
)
)
)
Reference in a new issue
Copy permalink