Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Does a compiler use all x86 instructions? (2010). Parent comment
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).
There are no comments on this comment yet.
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).