3 ms·
> Actually it can Yeah, I found this out the hard way. Turns out it's really ridiculously difficult to get GCC to put the rdtsc instruction where you want it :
by exDM69 13y ago
> Actually it can
Yeah, I found this out the hard way. Turns out it's really ridiculously difficult to get GCC to put the rdtsc instruction where you want it :)
But you get the point, the compiler can optimize better if you use C and intrinsics than inline asm.
- notacoward 13y agoTruth. I only use asm for stuff I can't do in C, like access architecture-specific registers or use instructions for which there are no C operators. Anything else strikes me as a bit of an exercise in machismo at the expense of sound engineering.