News for hackers. Stuff that matters.
Re:Dirty tricks 6502 programmers use by jwr on Sunday August 18, 2019 @07:45PM (#20733689)
This really depends on the specific architecture and the application. In some cases, you will want to optimize mostly for size, so that your hotspots fit entirely into I-cache. Modern CPUs spend most of their time waiting for data (or instructions) to become available, so often computations are essentially free.
Re:Dirty tricks 6502 programmers use by gpderetta on Monday August 19, 2019 @06:43AM (#20736613)
the average IPC over a variety of loads is, IIRC, estimated to be ~1. So no, most modern cpu do not spend most of their time waiting for data.