3 ms·
Your username is an effective proof that the answer to the title question is "no". :)
by valleyer 10y ago
Your username is an effective proof that the answer to the title question is "no". :)
- rdtsc 10y agoSorry didn't get the joke, how does it interact with reading the timestamp counter? Isn't LEA intended to calculate addresses? It seems it also doesn't alter flags and can put its result in any register.
- valleyer 10y agoThe title question, not anything to do with lea. I at least have never seen a compiler emit a rdtsc. (If there is some case where it does [presumably a benchmarking mode?] I'd be interested to hear of it.)
- rdtsc 10y agoHeh ;-) I see. Hmm, can't see it being emitted unless used in profiling code. But then as an inline assembly. Now rdtscp (notice the "p" at the end) is a fencing instruction as well! So I can see someone using that for barriers or when doing serialization. (Or I guess if a language somehow include getting a fast spinning counter as a feature that could end up as rdtsc* instruction).