[Coco] Linville's ramblings on assembly vs machine code

Mark McDougall msmcdoug at iinet.net.au
Mon Jul 10 20:52:57 EDT 2017


On 11/07/2017 10:45 AM, Mark McDougall wrote:

> Wringing performance out of a routine is another good example where 
> self-modifying code can be justified. Unrolling a loop and then jumping 
> into the code at the right point can save precious cycles on testing and 
> branching each iteration.

Perhaps not a clear example. Unrolling a loop inside another would 
require the outer branch to jump to a different address depending on the 
outer loop counter, so it would be patched at the start of the loop...

regards,

-- 
Mark McDougall
<http://retroports.blogspot.com.au>


More information about the Coco mailing list