Sujet : Re: rep movsb vs. simpler instructions for memcpy/memmove
De : monnier (at) *nospam* iro.umontreal.ca (Stefan Monnier)
Groupes : comp.archDate : 14. Mar 2025, 02:08:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <jwvldt8zakm.fsf-monnier+comp.arch@gnu.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Gnus/5.13 (Gnus v5.13)
The REP MOV straddles the boundary between two MTRRs.
Why/when would this happen in practice?
Nobody said it was a good idea.
But if it doesn't happen in normal cases, then it shouldn't be
significant to performance. So is the problem that just detecting the
occurrence of this situation is already too costly to make `rep
movsb` fast?
[ Of course, I still haven't understood either why it technically can
happen in amd64 but not in My 66000. ]
Stefan