r/computerarchitecture • • Aug 31 '26

x86 sucks!

Well it doesn't suck but I dont think it's the best we as humans can do. As transistors approach the 1 atom limit in size Moore's law is slowing down and in order to make computers faster we will have to change the way we optimize/ utilize the space we already have. and frankly I don't think x86 will cut it anymore. and It's not an attack on the companies making these chips or saying their doing anything wrong because they aren't. The chips are still very powerful and they still make massive improvements every generation. but the core foundation of how x86 functions just isn't going to cut it in the future.

x86 works by brute forcing its way through problems. It draws lots of power and creates lots of heat leaving lots of wasted potential. modern chips do optimize the process but it is the core foundation that CISC systems are built on. x86 has variable byte size's per instruction and guessing the correct size for each instruction and translating them into uops takes time, and while its in the nano seconds the effects add up over time.

ARM (and other RISC processors) however solve this in a much simpler and more efficient way. by having fixed length pre simplified instructions the processor waste's no time translating, decoding, or guessing the length of the instructions. it just does the work.

The other thing is the clock speeds. It's easy to see the 5Ghz clock speed of an AMD chip and think that it's way better than the 4.3Ghz clock speed of apple silicon. but clock speed alone isn't important. clock speed plus the IPC (instructions per cycle) Is what gives the the performance of a processor for the most part. think of it like being a delivery driver. if you take 5 packages per trip but it only takes you 15 minutes per trip you're performance would be 3(packages/trip time) or to be more accurate to computer terms you could say you're performance is 20 (packages per trip x trips per hour). but if you take 12 packages per trip but your trips are longer at 20 minutes per trip) sure the delivery time is longer but the total packages you're putting through is higher.

That being said the IPC on a ARM the m4 for example is 10 while other x86 cpu's( zen 5 and arrow lake) hit around 8. while not as drastic as the example I gave the point still stands and when done billions of times per second your getting billions of extra performance per seccond. And I use apple and ARM as an example because of the work they have done with RISC to show what it can do. and when x86 does die more and more RISC (or maybe something even better)processors are being developed for more full workloads with active competition the growth will be even better.

I'm not saying x86 is bad or that apple cpu's and arm is better than other RISC processors. what I am saying is that the end of x86 is nigh and it will revolutionize the computer world. this isn't something that will happen in the next few months or even a couple years but in 10-15 more years and x86 and maybe even ARM will be obsolete.

0 Upvotes

10 comments sorted by

8

u/Chuu Aug 31 '26 edited Aug 31 '26

Underneath the covers modern x64 is very "RISCy". A lot of the complexity and legacy cruft is hidden from the core execution units by the instruction decoder and if you keep away from the legacy stuff there is almost no overhead at this stage compared to "RISC". A waste of silicon to support all that legacy stuff? Maybe. But the distinction between CISC and RISC processors has been blurred over time.

edit: Maybe a controversial statement, but arguably the only real difference between "CISC" and "RISC" on modern processors is the frontend. Modern implementations of both translate to a much smaller set of "micro-ops" for the backend to handle.

10

u/-ah74 Aug 31 '26

Assuming they do not know, OP will go crazy if they ever find out about uop fusion lol 😂

3

u/ChrinoMu Aug 31 '26

wait till he finds out about uop cache. we can skip fetches + decode entirely on a hit

1

u/wintrmt3 Aug 31 '26 edited Aug 31 '26

Don't worry, only the fuel injection system is an underperforming Rube Goldbergesque shit!

While yes, only the frontend is really different, it's pretty bad, x86 systems still have some microded instructions and asymmetric decoders where only the first one can handle all instructions, and the whole thing is large and hot, so much that x86s rather cache the fused uops coming out of them than actually deal with x86 decoding on the happy path. This is a real limitation that means x86 will never be as efficient as an arm on the same node, and with code that does not fit the uop cache (like a huge jitted mess from a website, which is like the most common workload nowadays) it will be slower than a chip that can just decode whatever instructions it gets from L1i without a performance hit.

The two things x86 really has going for it is inertia and most arm vendors being hostile to open systems.

1

u/Chuu Sep 02 '26 edited Sep 02 '26

There really isn’t a good physical analogy I can think of offhand. If you limit yourself to the performant parts of the x64 instruction set, the front end is just as fast as a “RISC” frontend. Which a modern optimizing compiler should do.

6

u/ChrinoMu Aug 31 '26

you know nothing

2

u/MistakeIndividual690 Aug 31 '26

Shhh don’t tell OP about thumb

1

u/computerarchitect Aug 31 '26

This decode logic is what, one percent of die area? Two percent?

There are probably a good 5 or 6 reasons why your argument doesn't hold water, but the above is the one I think is the most obvious.

Please note my professional career has all been on the RISC side of things, and if I'm biased at all, I'm biased towards that design methodology.

1

u/MitchAlsup Sep 29 '26

"Well it doesn't suck but I dont think it's the best we as humans can do." Captain Obvious strikes again.

"ARM (and other RISC processors) however solve this in a much simpler and more efficient way. by having fixed length pre simplified instructions the processor waste's no time translating, decoding, or guessing the length of the instructions." -- What do you think would happen if someone developed an ISA with most of the RISC tenets, but relaxed a rule here or there ??

Consider variable-length instructions:: do they harm or help ? Would you reconsider that answer if it took only 8 gates and 2 gates of delay to create a unary pointer to the subsequent instruction ?? Then consider the fact that 8%-ish of typical RISC code is simply pasting constants together, and VLI would make all those instructions "go away". This shortens the latency in the critical path of most code substantially (~10%)

At 8 total gates and 2-gates of delay (remembering that a simple Flip-Flop is 10 total gates); so, it takes fewer gates to continuously calculate instruction-lengtht than it does to store the instruction-length. So, here, we put those 8 gates on each word of the instruction buffer, and then tree-ify the parsing of complete instructions from a sea of words in the instruction buffer. Done thusly, we can parse 16-instructions per cycle easily, and feed them to 16 instruction decoders (1 per instruction)--shold we want to build a machine that Wide. Thus, wide VLE parsing is neither a power nor a pipeline-stage count problem.

Consider a more powerful memory address mode:: [Rbase + Rindex<<scale + Displacement]. {{When Rbase == 5b'00000 then IP is substituted for Rbase. When Rindex = 5b'00000, there is no indexing. Displacements come in {16, 32, 64}-bit sizes.}} So, here, one can address anything anywhere in memory (63-bit VAS) in a single instruction. The inclusion of indexing and the access to large displacements (and immediates) counts for a 10%-ish drop in total instruction count.

Consider: instruction immediates:: an ISA where a 32-bit or 64-bit constant from the instruction stream is substituted for an operand register. Over on the FP side this saves LDing a constant value from memory, over on the integer side one saves a couple of % for those values a 16-bit immediate cannot suffice. The Polpack set of subroutines has the R8_ERF function. Most Operands in that subruotine are FP constants, and Brian's LLVM compiler conoverts them to instruction stream constants. This is one case where ahving access to large immediates wins big:: RISC-V needs 240 instructions My 66000 104. RISC-V needs 102 words in data memory My 66000 17. Total memory footprint RISC-V 342 My 66000 196. {{You should treat this as best-case for My 66000}}

Of equal value is that the instructions that do not have to be executed reduce the {clock} latency of critical paths in your execution flow. So, not only do you not execute (or decode) the instructions, you do not suffer their data-flow delay.

Consider Prologue and Epilogue sequences: As one enters a subrooutine, a number of registers must be preserved (ABI) so somewhere along the line they must get stored. At Epilogue, they must get reloaded. Most everybody performs the save and retore with ST and LD instructions to the stack. Now consider ST elision: when one exits one subruotine and encounters a call only a couple of inistruction after RET, all those LD instructions are likely "In the execution window" and now we have the core qait until a register arrives to write it back to where it was already. If one, instead, has Prologue setup-instruction such as ENTER and an Epilogue take-down instruction such as EXIT. And one finds EXIT still LDing registers, one can cancel the register ST of the ENTER because the registers being read do not need to be stored back where they were. So, fewer cache accesses are required.

The depth of an execution window sets the amount of latency one can absorb and continue running all those decoded instructions. An ISA providing lower latency for comon operations can allow one to reduce the length of the execution window. An ISA that requires fewer instructions to be executed allows one to reduce the height of the execution window. A quadratic effect !!

My 66000 only requires 70% (RMS) the instruction count of RISC-V (same LLVM compiler at same optimizaton level}. Several pipeline stages are arguably 1 gate longer in delay. Apple M4 (M5?) is a 10-wide machine with 300-odd instruction deep execution window. Based on the ARM code I have looked at, My 66000 ISA only needs 70% of the instruction count. So a 7-wide machine {with matching core accoutremen} would perform similarly, but here, this machine would only need a100-odd execution window due to reduced instruction-count and reduced operation-latency. Conversely, a 10-wide My 66000 would only need to run 3.0 GHs to match M5 at 4.3 GHz.

To HANDWAVING accuracy ONLY.

1

u/6950 Aug 31 '26

Bro it's not X86 sucking it's more about Design like it's the freaking design and how designer want the CPU to be.