2

I'm looking for any libraries that could help me extract code symbols (functions, types etc.) from the C family languages, preferably including calling dependencies. A Java library would be best since it's a Java application I need this functionality for, but that's not a hard requirement.

My aim is to build my own generic model of source code of different languages which I'll do further analysis on. Do you know any such libraries? Could clang be invoked by Java code for this purpose?

  • 1
    Do you need one library that generates call graphs for all of those C family languages? Or just for Java? Have you looked at en.wikipedia.org/wiki/Call_graph#Software and github.com/gousiosg/java-callgraph ? Ah, those don't include all symbols. – mic Aug 26 at 1:14
  • @mic They can be separate libraries to analyse each C language, but preferably to be used by a Java program. Thank you for the wiki link, it's quite helpful. The other one is for analysing Java code though, not C. – Double M Aug 26 at 5:03
  • Oh okay, so you want a Java library to generate call graphs for C, C++, and C#, and you don't need call graphs for Java. (Wasn't sure if you were considering Java as one of the C-family languages you wanted call graphs for.) – mic Aug 26 at 12:35
  • @mic That's exactly it. – Double M Aug 26 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.