Static source code analysis with LLVM

Posted by Phong on Stack Overflow See other posts from Stack Overflow or by Phong
Published on 2010-03-01T07:02:33Z Indexed on 2010/03/11 5:48 UTC
Read the original article Hit count: 236

Filed under:
|
|
|

I recently discover the LLVM (low level virtual machine) project, and from what I have heard It can be used to performed static analysis on a source code. I would like to know if it is possible to extract the different function call through function pointer (find the caller function and the callee function) in a program.

I could find the kind of information in the website so it would be really helpful if you could tell me if such an library already exist in LLVM or can you point me to the good direction on how to build it myself (existing source code, reference, tutorial, example...).

EDIT:

With my analysis I actually want to extract caller/callee function call. In the case of a function pointer, I would like to return a set of possible callee. both caller and callee must be define in the source code (this does not include third party function in a library).

© Stack Overflow or respective owner

Related posts about llvm

Related posts about static-analysis