3 ms·
Doesn't self-modifying code cause massive cache flushes and stalls on modern x86 archs?
by 0x0 5y ago
Doesn't self-modifying code cause massive cache flushes and stalls on modern x86 archs?
- ghusbands 5y agoNot even that modern. The self-modifying code in the article would be slow even on chips produced in the 1990s.
- colejohnson66 5y agoAny processor using pipelines suffers from self modifying code. The Intel 80486 was the first x86 chip to have a pipeline, and it was released in April 1989(!). Granted, it only had a 5 stage pipeline, so you'd only lose a few clocks each time, but modern x86 architectures have pipelines dozens of stages deep.