this post was submitted on 22 Nov 2023
0 points (50.0% liked)
Hardware
33 readers
1 users here now
A place for quality hardware news, reviews, and intelligent discussion.
founded 11 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The x86 instructions go through a translation layer that turns them into CPU specific instructions (microcode). So the CPU doesn't need any specific hardware to be compatible with these old instructions, it just needs to know how to get the same result with microcode.
This is incorrect. Very few x86 instructions uses microcode as the microcode engine is quite slow. It's mainly used for things like
cpuid
and such.Microcode is used very heavily in modern CPUs. It has been since the 90s.
A lot of x86 ISA is in the micro and PAL codes. Only the most frequent and performance-limiting ones are on-core for modern x86.
x86 is a huge set, so "very few" is a relative term ;-)
Are there performance losses or gains through this translation?
You are confusing microcode and micro-ops.
what is microcode is, then?
It's a way of creating a sequential control circuit based on a piece of memory holding the outputs and next state for each state.