Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7441135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:57:47+00:00 2026-05-29T10:57:47+00:00

I want to see the profile of LLVM IR programs. Does simplescalar simulator support

  • 0

I want to see the profile of LLVM IR programs. Does simplescalar simulator support LLVM? Are there any other simulators to do the same?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:57:47+00:00Added an answer on May 29, 2026 at 10:57 am

    If Simplescalar supports ARM and x86 ELF binaries, it can be used with LLVM-compiled programs.

    But if you want to do simple profiling (what time takes each part of program when running on real CPU), you can check more known profilers like:

    • google-perftools or
    • callgrind/cachegrind or
    • oprofile.

    You can’t just run a LLVM IR, because IR of LLVM is not supported in SimpleScalar or in usual profilers. IR is supported by lli and other llvm tools.

    If you want to profile which branches are used and how often, there is LLVM profiling for PGO (profile-guided optimizations). There are llvm-prof utility and utils/profile.pl script to profile LLVM IR programs.

    Howto from utils/profile.pl source:

    # Program:  profile.pl
    #
    # Synopsis: Insert instrumentation code into a program, run it with the JIT,
    #           then print out a profile report.
    #
    # Syntax:   profile.pl [OPTIONS] bytecodefile <arguments>
    #
    # OPTIONS may include one or more of the following:
    #     -block    - Enable basicblock profiling
    #     -edge     - Enable edge profiling
    #     -function - Enable function profiling
    #     -o <filename> - Emit profiling information to the specified file, instead
    #                     of llvmprof.out
    #
    # Any unrecognized options are passed into the invocation of llvm-prof
    

    Internally it is

    1. running of opt with some -insert-*-profiling Pass. output is instrumented IR
    2. running the intrumented IR with lli (with hope of using JIT)
    3. starting llvm-prof to convert llvmprof.out to readable text

    PS there is some research paper about LLLVM profiling: llvm.org/pubs/2010-04-NeustifterProfiling.pdf

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to see the stack trace in any function of my code, so
I have a long operation that I want to profile in JProfiler (or other
I want see the source code of System.Web.Routing.RouteValueDictionary class. But Reflector can't disassemble it
I want to see a basic project to learn how to organize membership and
I want to see in action howto make blog on Eclipse + Java +
I want to see if anyone has a better design for a class (class
I want to see all the different ways you can come up with, for
I want to see a list of all changes the next push would do.
I want to see the source of functions like ns_initparse(), res_search() etc. Where can
I want to see class, function and variable/property, dependencies visually, like NDepend , but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.