[gambit-list] How can built a small as 5 Kbytes "Hello World" program ?

Hendrik Boom hendrik at topoi.pooq.com
Mon Jan 19 17:04:59 EST 2015


On Mon, 19 Jan 2015 15:28:19 +0900, Ryuho Yokoyama wrote:

> Thank you very much for replying.
> 
> I downloaded the "gambc-v4_7_3.gz", then
> 
> $ ./configure --enable-single-host --enable-shared $ make
> 
> I could get a "libgambc.dll" now.
> 
>>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
>>libgambc.dll -lws2_32 w.exe
> Hello World
>>
>>
> This time the size of the "w.exe" is 136KB.  It's very small.

How can this possibly be considered "small" for such a trivial task, let 
along *very* small?

That's three times the entire RAM of the first machine I ran a HelloWorld 
program on!

I really wonder what is filling up all those K!

-- hendrik




More information about the Gambit-list mailing list