News for hackers. Stuff that matters.
Re:Learning to Read X86 Assembly Language by Steve44 on Monday November 28, 2016 @05:09AM (#13054496)
It's been a while since I programmed low level but I think on the 68k series they started to introduce cache and multi stage instruction pipelines. By alternating instructions working on different things you could get a decent performance gain. If every instruction had to wait for the result of the previous instruction to complete then it wouldn't be running at its best. With careful planning you could insert 'free' instructions but you would have to watch how flags were altered. We used to spend quite a bit of time optimising code to this level, eeking every bit of performance out of the hardware. Great fun.
Re:Learning to Read X86 Assembly Language by 3chelon on Monday November 28, 2016 @05:57AM (#13054675)
Sure, things have moved on a lot since those days. I think in modern RISC architectures you can even specify whether the instruction should set the condition flags.