3 ms·
>This decade :) The initial claim was that mov reg,0 was slower to execute.
by Dylan16807 13y ago
>This decade :)
The initial claim was that mov reg,0 was slower to execute.
- teraflop 13y agoSmaller opcodes will, all else being equal, take up fewer instruction decide cycles and less space in the CPU cache.
- ksk 13y agoA CPU cycle is Fetch,Decode,Execute,Writeback. The 'zero idiom' instructions do not consume any 'Execute' resources. Apart from this.. as the other poster said, smaller opcodes means more instructions can fit inside the caches.