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
Afficher les réponses par date
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@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
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@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@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@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Great..that worked! Thanks, Kashyap
On Fri, Jan 27, 2017 at 7:13 AM, Marc Feeley feeley@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@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@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@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
(I would generally consider Snow antiquated, it's idea of a cross-implementation package repository did not catch on in the community, which might be quite natural as implementations are quite different in design approach, goals, features.
There are some nice packages in Snow however.
Snow is a package management concept. Black Hole would serve incremental development and it works, there's a working copy on the dumping grounds with some libraries.)
2017-01-26 13:37 GMT+08:00 C K Kashyap ckkashyap@gmail.com:
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@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
Dumping ground does not seem to have lalr :( I like the idea of using MParser though.
On Tue, Jan 31, 2017 at 3:23 AM, Adam adam.mlmb@gmail.com wrote:
(I would generally consider Snow antiquated, it's idea of a cross-implementation package repository did not catch on in the community, which might be quite natural as implementations are quite different in design approach, goals, features.
There are some nice packages in Snow however.
Snow is a package management concept. Black Hole would serve incremental development and it works, there's a working copy on the dumping grounds with some libraries.)
2017-01-26 13:37 GMT+08:00 C K Kashyap ckkashyap@gmail.com:
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@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list