gambit-hello
gambit hello
some hello world style experiments with the Gambit scheme implementation. http://gambitscheme.org/wiki/index.php/Main_Page
Of interest might be some mingw cross-compilation examples.
Mingw
They were tried on a Fedora 19 host.
You need to cross compile gambit.
1./configure --host=i686-w64-mingw32 --enable-single-host
2make -j6 #depending on your cores
3sudo make install #/usr/local by default
each example has a mingw variant. So, for example:
- make hello, makes the hello example
- make hello-mingw makes an mingw variant of the example
when you run the resulting mingw binary in an xterm, a wineconsole is opened temporarily, unclear why. The small tst-mingw prog does not do this.
hello
1 make hello
2./hello
print a string and start a REPL
m3
from the gambit docs. shows how to interface with C
1make m3
2./m3
web-repl
web-repl is from the gambit dist, the only added value here is a mingw cross compile recipy.
1make web-repl
2nc 127.0.0.1 7000
The idea with a mingw web-repl, is to be able to remote debug a cross compiled gambit binary on a native windows install from the comfort of your Gnu/linux development environment.