3 ms·
> My question is, wouldn’t a “dumber” processor be better with a more expressive “API”, with instructions like prefetch, some form of parallelism (so that pipel
by bluGill 6y ago
> My question is, wouldn’t a “dumber” processor be better with a more expressive “API”, with instructions like prefetch, some form of parallelism (so that pipelines can be created with machine code and not just heuristics), since it is probably easier and better to branch predict in software than in hardware?
No. I'll list the reasons I know, but a real hardware designer will know even more.
There are many different ways to design hardware. The right thing to prefetch changes with different implementations. Unless you think everyone is going to ship source code?
- kaba0 6y agoNot necessarily source code, but some intermediate representation (even perhaps x86, and then going through a software compiler that converts it to this lower level language in hardware, inserting cache fetches where necessary. But probably a higher level representation, for example JVM byte code could be better optimised)