Asembly vs. C , C++, Java

Status
You're currently viewing only earl's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

earl

Well-known member
3,066
I don't think Hannibal would disagree. Hannibal's statement about microcode is that implementing a uniform ISA on a range of processors was the significant jump for modern computing. However, what current processors do now is on-the-fly, in-hardware translation of the x86 ISA to the internal ISA. All this consumes, on modern x86 CPUs, about 30% of the silicon. Removing this requirement, or at least reducing it with a more modern ISA, would allow the design engineers to devote much more silicon to functional units, etc and reduce overall complexity of the execution hardware.

FWIW, Demone's opinion is shared by James Goodman, a former Intel fellow and current CS professor at the UW-Madison.

-earl-
 

earl

Well-known member
3,066
Here's an anecdotal point. Because I was just examining this, look at the x86 ISA and register starvation. You have basically 8 general purpose registers. This leads to programs full of load/store commands because they don't have enough registers. This leads to wasted time and pipeline stalls -> more wasted time.

Of course, no one would create a processor with only 8 gp registers anymore. So what you end up with is somewhere from 32 to 128+ registers and a set of register pointers. When the executable does a store followed by a load, the CPU switches which internal register the ISA register maps to, in the hopes of avoiding a future request to reload the value it was supposed to just discard.

As one would imagine, this takes a shitload of logic on the CPU itself and creates two more problems -- hand optimized code will perform very differently on different processor cores and synchronization between multiple processors gets that much more difficult.

Imagine, instead, an ISA that provided 32 gp registers (like MIPS, give or take.) There is much less call for such manipulations behind the program's back, so you have to have a lot less logic in the chip to do the work.

-earl-
 

earl

Well-known member
3,066
Horatio,

I think that the whole process (decode of x86, various execution difficulties, register renaming, recode of x86 output) consumes probably 30% of silicon, yes. 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 :D

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-
 

earl

Well-known member
3,066
euzeka: 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.

Horatio: I could be misinformed. I'm just remembering from my design classes and the aforementioned opinion. I'll do a little more digging on my own.

-earl-
 
Status
You're currently viewing only earl's posts. Click here to go back to viewing the entire thread.
Not open for further replies.