Question How software created and made compatible with hardware

kep55

Distinguished
Dec 31, 2007
631
1
19,015
5
I asked this question some years back and have yet to get an answer from anyone. It's a two part question on software development.
First, when a new CPU / GPU is designed, how does the internal code get created that enables it to work? Second, when a new program language is created, how does the creator know it will work with certain CPU / GPU / ASIC et cetera? In both cases it's not like building a mechanical device that can be visually inspected at each step to see if the pieces work.
 

kanewolf

Titan
Moderator
New hardware instructions get simulated in software before becoming hardware. Then hardware goes through several iterations of internal validation and rework. There are still sometimes bugs. Just like an Andoid phone can be emulated on an Intel based PC, a new Intel CPU can be emulated on an existing Intel PC. Since Intel and AMD have experience in creating new CPUs or GPUs they have lots of lessons-learned from previous designs.
The second part is because the hardware has published specs of the instructions they support and what each instruction does. This is a compiler or interpreter writer's problem. Taking the new "abstract" language and converting it into the instruction set of the hardware.
 

Similar threads


ASK THE COMMUNITY

TRENDING THREADS