Programming language shootout
From Gambit wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The programs
Here are implementations for some programs from the Computer Language Benchmarks Game for Gambit.
Running k-nucleotide.scm with the largest data set creates a string of length 5,000,000. With four-byte characters (Gambit's default) this is 20,000,000 byte object, and the largest object that can be created in a 32-bit system is a bit less than 16MB. So, either configure Gambit with --enable-char-size=1 (or 2) or use a 64-bit version of Gambit.
The suggested build and install procedure for Gambit on the Computer Language Benchmarks Game machine is
./configure CC='gcc -march=pentium4 -mfpmath=sse -msse2' --enable-single-host --enable-char-size=1 make make install
This installs Gambit in /usr/local/Gambit-C, and the binaries gsi and gsc are in /usr/local/Gambit-C/current/bin.