I built a "Hello World" program as follows,
>type h.scm
(display "Hello ")
>type w.scm
(display "World")
>gsc -link h w
>gsc -obj h.c w.c w_.c
>gcc -o w.exe h.o w.o w_.o C:/Gambit-C_64bit/v4.7.3/lib/libgambc.a
-lws2_32
>w.exe
Hello World
>
This way, the size of the "w.exe" is 4.61MB.
In Gambit-C manual documents
3. The Gambit Scheme compiler
3.4 Link files
... A "Hello World" program built this way can be
as small as 5 Kbytes. ...
Could you please teach me how to built program as small as 5 Kbytes
one.
Thanks in advance.