Re: Version after Version
- From: "Bruce Roberts" <dontsendtober@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 31 Oct 2005 12:17:40 -0500
"ProfitMaxTrading.com" <nospam@xxxxxxxxxx> wrote in message
news:dtf9f.4687$LR1.3628@xxxxxxxxxxxxx
> Knowing that you like Visual Basic, I was surprised about your comments
> on 'C'. ASM I can see as producing more efficient code. That's a no
> brainer since it is so close to the machine level. But Visual Basic over
> 'c' in efficiency? That throws me for a loop.
ASM only has the potential to produce more efficient code. Code efficiency
using it is very dependant on the coder. The dependance on coder knowledge
and practice is greatly reduced when one has an optimizing compiler
contributing to the final code. So, IMO, its a myth that ASM is more
efficient. (Although it may have been true 25 - 30 years ago.)
One reason a language such as VB can produce more efficient code than C is
because coders are more constrained and the compiler has more choice in
implementation. A C coder, for example, may declare a longInt array such
that it doesn't start on a word boundry, making access particularly
inefficient. AFAIK, a VB programmer doesn't have this option, the compiler
makes the decision. I'm not suggesting that VB, itself, produces more
efficient code than C. What I am saying is that we should no longer believe
that the closer to machine language we go the more efficient a program will
be.
Undoubtably there are coders out there who can produce more efficient ASM
code than any current compiler can produce. However, they have difficulty
doing so consistently, especially in very large projects. As a rule of
thumb when measured across an entire application, current optimizing
compilers will always produce code that is no worse than what a good ASM
coder can produce. And, they will do so in a fraction of the time.
.
- Follow-Ups:
- Re: Version after Version
- From: ProfitMaxTrading.com
- Re: Version after Version
- References:
- Version after Version
- From: ProfitMaxTrading.com
- Re: Version after Version
- From: Frank de Groot
- Re: Version after Version
- From: J French
- Re: Version after Version
- From: Frank de Groot
- Re: Version after Version
- From: Marc Rohloff
- Re: Version after Version
- From: Frank de Groot
- Re: Version after Version
- From: Marc Rohloff
- Re: Version after Version
- From: Frank de Groot
- Re: Version after Version
- From: Maarten Wiltink
- Re: Version after Version
- From: Frank de Groot
- Re: Version after Version
- From: J French
- Re: Version after Version
- From: Frank de Groot
- Re: Version after Version
- From: J French
- Re: Version after Version
- From: Frank de Groot
- Re: Version after Version
- From: J French
- Re: Version after Version
- From: Frank de Groot
- Re: Version after Version
- From: J French
- Re: Version after Version
- From: Frank de Groot
- Re: Version after Version
- From: ProfitMaxTrading.com
- Re: Version after Version
- From: J French
- Re: Version after Version
- From: ProfitMaxTrading.com
- Version after Version
- Prev by Date: Re: Version after Version
- Next by Date: Re: Fun stuff: The illusion of free ;)
- Previous by thread: Re: Version after Version
- Next by thread: Re: Version after Version
- Index(es):
Relevant Pages
|