Tuesday, Aug 07
In my previous post about FreeDOS tools I mentioned that I hadn’t yet tried to get Gambit Scheme to compile .scm
code to a stand-alone .exe
. There are a couple of things you need to do.
-
If you’ve not installed to
C:\GAMBC
, set the environment variable%GAMBCDIR
ro point to where you installed it. This allowsgsc
to find_gambc.c
which it needs to compile scheme to c. -
Make sure you have the DJGPP C/C++ compilers installed.
-
For some “program.scm”:
gsc -c program.scm
- this will createprogram_.c
andprogram.c
gcc -L%GAMBCDIR -I%GAMBCDIR program_.c program.c -o program.exe -lgambc
Simple!