Article View: alt.sys.amiga.demos
Article #1069Re: Do u have....
From: Fabio Bizzetti
Date: Thu, 23 May 1996 00:00
Date: Thu, 23 May 1996 00:00
73 lines
3933 bytes
3933 bytes
>Try explaining to Assembler programmers though that there will soon
>come a point where optimising compilers will be able to generate *better*
>code than a programmer - they just refuse to believe you. But the
>increasing advancements in compiler technologies, plus the increasing
>complexity of processors, means that soon generating machine code
>will be a job best left to the computer. And low level languages
>like Assembler will only be used in a very small handful of situations
>(if at all !!!).
You should dry some liters of humbleness, once for all.
I'll try to be on your side, let's examinate (and demolish) the best compiler
around: the PC's Watcom C++.
What code Watcom or the best compiler of the 2000s will generate i.e. for a
PlotPixel function? How many x10 times slower than this?
shl edi, 6 ; ebx *= 64 3 clocks
lea edi, [edi*4+edi] ; ebx *= 5 (64*5 = 320) 1 clock
mov [edi+ebx+0a0000h], al ; memory ref
That does in 3 instructions 1 multiplication (*320), 1 addition (for X),
and the write in the right zone of the screen memory.
Since compilers are dumb and humans (well, except a big part) aren't, one can
also examinate if the cache system is good enough to make become convenient
this 2 instructions version:
mov edi, [edi*4 + table] ; memory ref
mov [edi+ebx+0a0000h], al ; memory ref
---
Now, since me and many others are humans and have a brain that distiguish us
from the machines, that makes us "intelligent" unlike them, I can tell you
that your damn compilers will NEVER generate a better code than a human, that
has the right brain structure to gain from experience and association of
memories/experiences.
Now, if your assembly skills are so crap that an interpreted Basic will be
faster than your assembly code, fair enough.. your problem pal.
I agree only about a thing with you: today and tomorrow compilers will
averagely generate better code than humans, but NOT because compilers are
good; simply because there're a lot of lamers like you going around and
pretending to be called assembly coders.
Well pal, if you feel offended by my reply, remember that 1) I am tired of
reading that assembly coders are imbecills, while they're "ingenious", and
2) that this wanting-to-omologate-everyone sucks bigtime.. I will never be
a sad C++ programmer using sad academical methods and sad tight and senseless
and needless rules.
There're people that are able to make innovative stuffs, and they use and
are able to use assemblers in the proper way.
>>
>>--
>>Ben Hutchings, JCR Computer Rep elect, Worcester College, Oxford.
>-FISH- ><>
/-----------------------------------------------------------------------\
| Fabio "Maverick" Bizzetti - bizzetti@mbox.vol.it - Maverick* at IRC |
| The maker of "CyberMan" and "Virtual Karting" |
| working on "VirtualRally" & "StarFighter" |
\-----------------------------------------------------------------------/
Technical Details
Message-ID:
<3167.6717T1420T1099@mbox.vol.it>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<DrurGn.848@csc.liv.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11015b,4fcf1086bd67463e X-Google-Attributes: gid11015b,public X-Google-Thread: f778b,1db53a4448a96916 X-Google-Attributes: gidf778b,public X-Google-Thread: ffc26,1db53a4448a96916 X-Google-Attributes: gidffc26,public X-Google-Thread: 106ac0,1db53a4448a96916 X-Google-Attributes: gid106ac0,public From: bizzetti@mbox.vol.it (Fabio Bizzetti) Subject: Re: Do u have.... Date: 1996/05/23 Message-ID: <3167.6717T1420T1099@mbox.vol.it> X-Deja-AN: 156388354 distribution: world references: <DrurGn.848@csc.liv.ac.uk> organization: Video On Line newsgroups: alt.sys.amiga.demos,comp.sys.amiga.misc,comp.sys.amiga.programmer,demon.ip.support.amiga