News for hackers. Stuff that matters.
Re:Writing a self-modifying x86 factorial program by ghusbands on Wednesday December 15, 2021 @08:40AM (#29565731)
Not even that modern. The self-modifying code in the article would be slow even on chips produced in the 1990s.
Re:Writing a self-modifying x86 factorial program by colejohnson66 on Wednesday December 15, 2021 @09:32PM (#29574153)
Any 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.