x86 Efficient code
Posted: Thu Mar 22, 2007 4:58 am
lo,
I have lately been bizy on making my assembly code more efficient and have been reading the Intel Optimization reference to improve some of my code.
But does any one know of any other good places where i can find some additional info on what to do and what should not be done.
for example:
xor ebx,ebx
mov bl,al
shl ebx,8
must be: (this is about 8 cycle faster :S)
movzx ebx,al
shl ebx,8
Also what about:
Lodsx and stosx, shoud i use those? cant find much in the Intel
Optimization reference
Any other info you might know on this subject is welcome.
I have the following target system: Core 2 Duo.
Regards
Wilco van Maanen
I have lately been bizy on making my assembly code more efficient and have been reading the Intel Optimization reference to improve some of my code.
But does any one know of any other good places where i can find some additional info on what to do and what should not be done.
for example:
xor ebx,ebx
mov bl,al
shl ebx,8
must be: (this is about 8 cycle faster :S)
movzx ebx,al
shl ebx,8
Also what about:
Lodsx and stosx, shoud i use those? cant find much in the Intel
Optimization reference
Any other info you might know on this subject is welcome.
I have the following target system: Core 2 Duo.
Regards
Wilco van Maanen