flat assembler
Message board for the users of flat assembler.
Index
> Main > MOVS and CMPS Performance question |
Author |
|
smiddy 23 Dec 2014, 21:45
I don't know, I've always used a byte-wise comparison and mov.
I've never tried those, so I'd be interested in hearing what others have done. |
|||
23 Dec 2014, 21:45 |
|
tthsqe 23 Dec 2014, 22:05
You should be able to use both, and if you need more speed in a performance critical section, you can try to not use the string instructions. Intel has not bothered to made these instructions fast, although that may have changed with the newer processors.
I recently encountered a speed boost on ivy bridge by changing stosq to mov dword[rdi],eax; lea rdi,[rdi+8], but this may mean nothing for your needs. Bottom line: try both and see which one is faster for you. |
|||
23 Dec 2014, 22:05 |
|
revolution 24 Dec 2014, 00:13
Don't guess, measure.
|
|||
24 Dec 2014, 00:13 |
|
smiddy 24 Dec 2014, 01:09
revolution wrote: Don't guess, measure. Empirical evidence always wins, yo! |
|||
24 Dec 2014, 01:09 |
|
tthsqe 24 Dec 2014, 03:33
one more thing, 68K != modern intel/amd processor. Completely different ball games.
|
|||
24 Dec 2014, 03:33 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.