|
|
|
|
|
by feeley
1667 days ago
|
|
You need to install Gambit HEAD, then you can: % cd src
% gsi rsc.scm -m -t py -l max repl-max.scm
% python3 repl-max.scm.py
> (+ 1 (* 2 3))
7
or for the C version: % gsi rsc.scm -m -t c -l max repl-max.scm
% gcc -DCPROG -o repl-max.scm.exe repl-max.scm.c
% ./repl-max.scm.exe
> (+ 1 (* 2 3))
7
To install Gambit follow the instructions here: https://github.com/gambit/gambit |
|
I see that the extra "input" definition in the .c file is in an #ifndef next to some clang pragmas: does it expect to be compiled with clang? I'm using gcc 8.3.
I got rsc working with python after a few false starts, but that also crashes (with a python backtrace instead of a segfault) when I try to define and use a function.
Also have similar crashes when the scheme output of rsc, under both gsi and guile.