Answer the question
In order to leave comments, you need to log in
What should the code for counting register addressing cycles look like?
There is a variant of the register addressing command:
mov bx, ax
mov es, ax
How can I implement the rdtsc command in this code to count the number of cycles?
(you need to do this for each addressing method, then compare which one takes longer)
Thank you for your help.
Answer the question
In order to leave comments, you need to log in
You are asking the same question for the third time. Are you hoping that Intel will retroactively redesign their processors in order to make it clearer to you?
On a pipelined processor with a multi-level cache, superscalar architecture and an optimizer right in the processor core, you will get garbage, not results. I'm not talking about a multitasking operating system that can switch threads for you at any time.
Okay, let's say you put your code in a critical section. However, in addition to the operating system, https://ru.wikipedia.org/wiki/Intel_Management_Engine can interfere with the work, and you cannot influence its operation.
If this task was assigned to you at the university, invite your teacher here, let him teach us all how to solve such a task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question