I want to ask one question. I really don't understand the idea why programmers need C, C++ or Java. Assembly what is need for programmers. Right? Assembly is faster and directly communicate with hardware. No need JDK, or linker or etc.
Yeah, you just write an error-free, million line, object oriented GUI program with assembly, then get back to us.I want to ask one question. I really don't understand the idea why programmers need C, C++ or Java. Assembly what is need for programmers. Right? Assembly is faster and directly communicate with hardware. No need JDK, or linker or etc.
Originally posted by mikeshn:
I want to ask one question. I really don't understand the idea why programmers need C, C++ or Java. Assembly what is need for programmers. Right? Assembly is faster and directly communicate with hardware. No need JDK, or linker or etc.
Originally posted by Thanatos22:
Yeah, you just write an error-free, million line, object oriented GUI program with assembly, then get back to us.![]()
Modern compilers are far better at assembly optimization than all but the best lowlevel programmers, and don't make mistakes (well, other than compiler bugs...) The highlevel mindset also makes program design and maintenance easier.
(I posted this in both threads as I don't know which will be locked)
1) Assembly isn't faster for the average programmer. It only is for the expert assembly programmer.Assembly is faster and directly communicate with hardware. No need JDK, or linker or etc.
However I've always thought of C as just a universal Assembly language since it combines all the power of Assembly with all the ease of use of Assembly. It's just that it will work across processor families
Originally posted by clasm:
IMHO, assembly is an awesome language because it really forces the programmer to understand how the microprocessor works.
Originally posted by petrov:
I think you guys all fell for a troll.
--sam
I wonder if there would be a dramatic difference in code speed if assembly were more natural to the internals of modern processors.
Hannibal might disagree with you on that one:In a post from Paul Demone, he mentioned that x86 CPUs have about a 30% loss in performace do to the not so great qualities of their ISA (I hope I'm not misquoting him, I'm 99% sure that was the figure). But since x86 CPUs have access to the best processes and engineering they can make up for it.
(emphasis mine)The main drawback to using microcode to implement an ISA is that the microcode engine was, in the beginning, slower than direct execution. (Modern microcode engines are about 99% as fast as direct execution.) However, the ability to separate ISA design from microarchitectural implementation was so significant for the development of modern computing that the small speed hit incurred was well worth it.
Modern compilers are far better at assembly optimization than all but the best lowlevel programmers, and don't make mistakes (well, other than compiler bugs...)
The highlevel mindset also makes program design and maintenance easier.
Originally posted by Thanatos22:
http://www.arstechnica.com/cpu/2q00/x86future/isa-future-1.html might disagree with you on that one:In a post from Paul Demone, he mentioned that x86 CPUs have about a 30% loss in performace do to the not so great qualities of their ISA (I hope I'm not misquoting him, I'm 99% sure that was the figure). But since x86 CPUs have access to the best processes and engineering they can make up for it.
(emphasis mine)The main drawback to using microcode to implement an ISA is that the microcode engine was, in the beginning, slower than direct execution. _(Modern microcode engines are about 99% as fast as direct execution.)_ However, the ability to separate ISA design from microarchitectural implementation was so significant for the development of modern computing that the small speed hit incurred was well worth it.
But that won't necessarily make anything any faster. It assumes you can extract some more parallelism -- but that's far from guaranteed.And that if you didn't have to do this, that 30% could be used far more productively -- hell, just add another FPU and ALU
Given the ongoing increase in performance, I'd say that emulation of the old ISA via software would be much more economical, practical, and simple. Oh but wait, it's already been done, and quite a while ago! (Digital FX!32 is what I'm talking about.)The solution that I think would be interesting is to design a new ISA (knowing full well that in 10 years people will be cursing the design tradeoffs you make.) Start making motherboards with two processors: the new processor and an old x86 processor that you feed x86 programs to. This allows you to run new/old code side by side. Note that I don't know if this is feasible; just insanely cool.
-earl-
I know about the macseuzeka: macs did it as well with their switch to a different architecture a while back. Or at least partial emulation...
However, the nice thing about actually putting a whole legacy CPU on the motherboard is the CPU is cheap and *no* speed degredation.
It wasn't the case with FX!32 (tho' the Win2K for Alpha version was meant to be both better-integrated and more efficient, so perhaps it was a more useful speed), though I think it was the case with Apple's 68K to PPC transition.The odds are that the CPU with the newer architecture will be faster and able to emulate the older CPU at least as fast as actual old silicon (that was the case with the Alpha anyway).
IMHO the recent advent of JIT compiling will go a long way towards making the ISA less and less important.
It isn't now, but I think it was back then. IIRC, Digital FX!32 dates back to around the pentium era, or maybe very early early P2.The problem is, an Alpha just isn't that much faster (if it's even faster at all) than the current fastest x86 processors.
I didn't use it extensively, but I had chance to use it on a few occasions; it gave the impression of turning your nice expensive Alpha into a 486. It was tolerable for things like Office, but not something you'd want to do any work in (though for all I know it was misconfigured and/or out of date). It dates back to the days of the PPro and Pentium MMX (NT 4 was out in 1996 if memory serves). The Pentium II didn't emerge until 1997.Originally posted by euzeka:
It isn't now, but I think it was back then. IIRC, Digital FX!32 dates back to around the pentium era, or maybe very early early P2.