[gambit-list] How can built a small as 5 Kbytes "Hello World" program ?
Ryuho Yokoyama
ryuho8 at ybb.ne.jp
Sun Jan 18 21:54:18 EST 2015
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20150119/25e94144/attachment.htm>
More information about the Gambit-list
mailing list