Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We have robust support for alternate code paths based on CPU flags after many years of this kind of thing. Is that really necessary or useful?

Custom microcode handling is a lot more brittle and chip- specific yet nearly equivalent to overloading in software your call to some avx512 op.



You're right, it isn't needed

The "last time" this was done was in the x87 days, where if the math coprocessor wasn't installed you could trap the corresponding interrupt and handle it to emulate the instructions.



> The "last time" this was done was in the x87 days, where if the math coprocessor wasn't installed you could trap the corresponding interrupt and handle it to emulate the instructions.

Wasn't Hackintosh (or getting new OS X running on too old hardware) also using this technology to "support" CPUs without the newest SSEx instruction sets?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: