News for hackers. Stuff that matters.
Re:New Spectre Vulnerability Beats Mitigations, Performance ... by xroche on Monday May 03, 2021 @07:43AM (#27023849)
Dumb question: what would be the cost of a compiler-based mitigation, ie. never using fused instructions (ie. complex instructions broken-down into several micro-instructions internally by the pipeline) but only micro-ops that won't use the u-ops cache ?

This would have an obvious impact on the code size/cache efficiency, and on the number of registers used to store intermediate results, but how much would this kill performances, depending on the use-case ?

Re:New Spectre Vulnerability Beats Mitigations, Performance ... by HelloNurse on Monday May 03, 2021 @08:04AM (#27024000)
It's probably impossible by a wide margin. The compiler is limited to emitting plain old x86 instructions, the leaky u-ops and caches thereof used to execute essentially harmless x86 instructions instructions are a microprocessor implementation detail.