2 ms·
The code keeps using high registers for no discernible reason The function[1] inside of which the assembly is located declares a lot of variables as well. I d
by nkurz 13y ago
The code keeps using high registers for no discernible reason
The function[1] inside of which the assembly is located declares a lot of variables as well. I don't know how well Free Pascal does register allocation, but perhaps this avoid clobbering the registers it prefers. Alignment seems like a likely candidate, but isn't likely to explain why the exact ordering of the extra ops makes a difference.
Would help to see the assembly for the whole function.
[1] https://github.com/tangentstorm/coinops/blob/junkops/sha256_mjw.pas https://github.com/tangentstorm/coinops/blob/junkops/sha256_...