[LLVMdev] How to use profiling runtime for program profiling?

Haifeng He hehaifeng2nd at gmail.com
Tue Jan 29 22:46:37 PST 2008


Hi, all

I have a question about how to profile program with LLVM. When I tried
to compile the
instrumented version of program after using "-insert-block-profiling", I got
error complaining
    " undefined reference to `llvm_start_block_profiling'.

I found that there is a "runtime"directory in llvm source directory
but in the Makefile, it said
llvm gcc 4 and above already included the libraries. I was using llvm
gcc 4. Why would I
still get the error?

Thanks

Haifeng



More information about the llvm-dev mailing list