It's about the GNU Common Lisp compiler ...
runs greased lightning speed on Linux , slow on Win
.........................................; LINUX
>(defun tst ()
(let ((a 0) (b 0))
(dotimes (i 10000000 (list a b))
(if (evenp i) (incf a) (incf b)))))
TST
>(compile 'tst)
Compiling /tmp/gazonk_5582_0.lsp.
End of Pass 1.
End of Pass 2.
OPTIMIZE levels: Safety=0 (No runtime error checking), Space=0, Speed=3
Finished compiling /tmp/gazonk_5582_0.lsp.
Loading /tmp/gazonk_5582_0.o
start address -T 0x8a36b8 Finished loading /tmp/gazonk_5582_0.o
#<compiled-function TST>
NIL
NIL
>(time (tst))
real time : 0.059 secs
run-gbc time : 0.039 secs
child run time : 0.000 secs
gbc time : 0.000 secs
(5000000 5000000)
...........................................................................
installed the Win distribution on another (somewhat slower, but not too much) computer and here it takes about 20 times longer ..
Now
1) the Lisp source should be compiled with the GCC , under Win GCL comes with a (tiny) MinGW compiler suite
2) documentation is esoteric and vague & only ECL mentions (same Austin Kyoto LISP family) the generated code under *NIX is native , while bytecode under Win.
3) set up the latest GCC under windows and directed the PATH to this location -- however , while sourgeforce mentions both "for 32 and 64 bit" , the REPL upon compilation gives , not a win32 appl.
Some one knows more ?? any cure ??
thanks in advance, Rob