[gambit-list] Using snow to create gambit executable

C K Kashyap ckkashyap at gmail.com
Fri Jan 27 13:50:40 EST 2017


Great..that worked!
Thanks,
Kashyap

On Fri, Jan 27, 2017 at 7:13 AM, Marc Feeley <feeley at iro.umontreal.ca>
wrote:

> You need to generate .c files for each module, and then link them into an
> executable using gsc.  Because snow is implemented using macros that are
> defined in the file “snow.scm”, it is necessary to use the -prelude gsc
> option.
>
> For example, with two modules f1.scm and f2.scm:
>
>
> gsc -prelude '(begin (include "~/.snow-site/current/base/snow.scm")
> (include*-cd "f1.scm"))' -c f1.scm
>
> gsc -prelude '(begin (include "~/.snow-site/current/base/snow.scm")
> (include*-cd "f2.scm"))' -c f2.scm
>
> gsc -exe -o out f1.c f2.c
>
>
> Marc
>
>
> > On Jan 26, 2017, at 9:50 PM, C K Kashyap <ckkashyap at gmail.com> wrote:
> >
> > Gentle ping :) ... just know how to create executable using snow would
> make me very happy.
> > Regards,
> > Kashyap
> >
> > On Wed, Jan 25, 2017 at 9:37 PM, C K Kashyap <ckkashyap at gmail.com>
> wrote:
> > Hi,
> > Could someone please tell me how I can create executables using snow -
> >
> > snow's documentation says
> >
> > snow --compile file.scm produces file.o1
> >
> > How can I link file.o1? I found out about  "bundle" only now so please
> excuse my ignorance.
> >
> > Regards,
> > Kashyap
> >
> > _______________________________________________
> > Gambit-list mailing list
> > Gambit-list at iro.umontreal.ca
> > https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20170127/2cba1957/attachment.htm>


More information about the Gambit-list mailing list