Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想计算使用rdtsc指令运行我的程序所需的 CPU 时钟周期,因为它在我的分配中是必需的。在“AFD” 中使用指令的语法应该是什么? 我正在使用指令,但是“AFD”在我的程序执行时终止了它......rdtscrdtsc
rdtsc
该rdtsc指令根本没有操作数。所以这当然不是问题。
但是许多环境不允许用户程序使用该指令。 例如,Windows 不允许使用 16 位 DOS 程序rdtsc
可能这也适用于您正在使用的“AFD”。