arachne-digest wrote:

> As I said, I was struggling with "C".
> The first example program is, of course, "Hello world".
> It's an 8884 byte exe.

Yes, because subset of "libc" is staticaly linked to it in DOS.
If you write two hello worlds, it won't be 16k.

I don't consider this overhead to bee too serious, compared to multi-MB 
overheads of visual programming enviroments...

> Here's my ASM version - just type it into debug.
> BTW, I just wrote it that way - all 23 bytes.
> Hello.com:
> 
> BA 09 01 B4 09 CD 21 CD 20 48 65 6C 6C 6F 20 77
> 6F 72 6C 64 0D 0A 24
> 
> And that certainly is not a record.<G>

But you are just calling BIOS function - that's cheating. Most 
applictions do more than just calling BIOS functions...

And most applications do _much_ more than just displaying strings. With 
ASM, you are reinventing wheel all the time. With C, programming is much 
more like art: you have to be creative, but you have some generic tools 
and "material" already avilable for you, you don't have to produce your 
own paint or dig for stone on your own. With object oriented 
programming, it is more like frying hamburgers at McDonalds.

What is your favourite idea of creative work ? Stone age artist, 
creating "optimized" statues from mud, Michelangelo in 16th century in 
Firenze, or some art studio designer at Macintosh, using pre-defined 
Photoshop filters ?

-- 
Michael "xChaos" Polak
+420 603 872631 / +420 2 33355668 / ICQ# 40434104
http://www.arachne.cz (Arachne Labs homepage)
http://www.mp3records.cz (100% legal and free music)
http://www.legalizace.cz (Stop drug war & release victims !)
http://www.vojna.cz (Petice za zruseni vojny i civilni sluzby)

Reply via email to