Now that the list seems to be open again I will try to resend this for the THIRD time. My apologies if you get duplicates.
Michael Polak wrote: > > 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. Understood, but it's still a good example. You end up with buckets and buckets of stuff you don't need whenever you include any of the standard packages that do the work for you. ;-) > > 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... I'm calling a DOS function - actually two of them. Why is that cheating ? That's what they are there for. I know it CAN be that simple in "C" , why isn't it in most situations ? > And most applications do _much_ more than just displaying strings. With > ASM, you are reinventing wheel all the time. Heck NO ! Once I get a wheel I like the shape of, I use it over and over. With "C" you have to use some else's wheel and it ends up being a TRUCK wheel on your bicycle. <G> > 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. Maybe a good analogy. With the above you don't have to care if you are using horsemeat or roadkill. You just focus on the frying. <g> > 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 ? Michelangelo of course. That last one doesn't even qualify as life let alone art. <G> Nice to hear from you again.:) - Clarence Verge -- - Help stamp out FATWARE. As a start visit: http://home.arachne.cz/ - The internet is infected - Windows is a VIRUS !! -- - Clarence Verge. -- Using Arachne 1.66 on DSL.
