Programming language shootout

From Gambit wiki

Jump to: navigation, search

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.

Personal tools
documentation