On Sun, 10 Jun 2001 19:42:08 -0500, Clarence Verge wrote:
> Cristian Burneci wrote:
>> Mesajul original a fost trimis de "Clarence Verge" <[EMAIL PROTECTED]>
>> la data de Sat, 09 Jun 2001 04:12:14 EDT
>> > What can I say. The video drivers are crap and nothing will ever be done
>> > about them because some people believe that "C" is a useful programming
>> > language for such things.
>> Don't blame the C language for that!
>> <Snipped argument>
>> And C does it
> What can I say ? I tried to write something but I then felt it would pixx
> off too many so I deleted it. <G>
> There isn't much point arguing, because MOST "C" programmers refuse to
> believe their code could be less than ideal.
> The only thing that really matters is results, and EVEN THEN, when it is
> SHOWN that the ASM routine runs 3 to 10 times faster and is 5 to 10 times
> smaller, they ask "Who cares ? Get a new computer !"
> That's the problem. :(
Well....
What you say might be true of *some* "C programmers". :(
However, it is most certainly not true of *this* "C programmer".
*This* "C programmer" is simply too lazy to learn ASM. <VBG>
But I *do admitt* that ASM is better in almost all aspects than is C.
The only aspect of C that I will wins "hands-down" over ASM......
"amount of time from inseption to completion"
It took about 2 or 3 hours to translate this old TRS-80 model 1
program to C and compile it for the PC.
(took about the same to convert it to M1 basic from its original
RadioShack "Color Computer" format)
http://www.angelfire.com/id/glenndoom/drop.bas
http://www.angelfire.com/id/glenndoom/drop.c
All it does is to draw this picture dot-by-dot. :)
http://www.angelfire.com/id/glenndoom/drop.jpg
The Color Computer did it "on screen" in graphics mode.
Since the M1 has no graphics mode capable of doing it.
I programmed it to send each dot to the CGP (Color Graphics Printer)
(even rigged-it-up to rotate the color pens after each dot was printed.
red, green, blue and black) <g>
The whole picture took about 2 hours to draw on that M1/CGP
On the PC, we're back to "on screen graphics".
(it draws the picture on screen in about 2sec. with this P150)
Here's a little project for you.
See how long it takes to translate drop.bas to drop.asm and assemble it
to run on a PC.
Then try.... drop.c to drop.asm <g>
Oh yeah,
drop.c was compiled by Borland Turbo-C/C++ v3.0 to run on a 386 with the
option to use the math copro if found at run time.
(a 486sx25 without a copro takes about 2min. to complete the drawing)
Can you do *that* in ASM ?
And... convert drop.bas to drop.asm in 2 or 3 hours??? <VBG>
--
Glenn
http://arachne.cz/
http://freedos-32.sourceforge.net/
http://www.delorie.com/listserv/mime/
http://www.angelfire.com/id/glenndoom/download.htm