any tool to count instructions?
hello guys,
i'm working on my computer architecture homework. of the tasks is to run a benchmark and count the top 20 mostly used instructions.
but i don't know what kind of tool can do that.
i know that AMD's codeanalyst has some thing called instruction-based sampling. but that doesn't work on my intel machine.
or is there any virtual machine that does this job?
thank you.
Re: any tool to count instructions?
I'd assume if it's homework, your textbook and/or class notes should tell you how to get the information.
Re: any tool to count instructions?
unfortunately it doesn't
i just found out that vtune will give that information.
Re: any tool to count instructions?
Re: any tool to count instructions?
vtune gives an event based sampling test, which is similar to instruction count, but not exactly.
there is a tool, called simplescalar. but that thing is very stupid, it doesn't compile.