CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2006
    Posts
    99

    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.

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    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.

  3. #3
    Join Date
    Jan 2006
    Posts
    99

    Re: any tool to count instructions?

    unfortunately it doesn't

    i just found out that vtune will give that information.

  4. #4
    Join Date
    Apr 2007
    Location
    Mars NASA Station
    Posts
    1,436

    Re: any tool to count instructions?

    Challenging question.
    Thanks for your help.

  5. #5
    Join Date
    Jan 2006
    Posts
    99

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured