[fpc-devel] rdtscp

Wolf wv99999 at gmail.com
Sat Oct 21 21:41:30 CEST 2017


Hi,

How do you measure time with a one cycle resolution? EpicTimer clearly 
does not cut it, and from what I gather 
<https://www.intel.com/content/www/us/en/embedded/training/ia-32-ia-64-benchmark-code-execution-paper.html>, 
rdtsc cannot do it either. You need to have a CPU capable of 
understanding rdtscp.

But then, FPC 3.00 does not want to compile this assembly instruction. 
So how do you guys manage to measure it?

Thank you

wolf




More information about the fpc-devel mailing list