Where can I find good open source code flow visualization software?

前端 未结 4 1765
刺人心
刺人心 2021-01-30 15:15

I am working on an academic research regarding some very long functions in the Linux kernel (link, link).

For that research, I would like to use some code flow visualiza

相关标签:
4条回答
  • 2021-01-30 15:46

    Doxygen does some amount of 'visualization',
    but you need to work on the code a bit for it to be usable.


    Another interesting thing to check would be lxr

    Linux Cross Referencer is a software toolset for indexing and presenting source code repositories. LXR was initially targeted at the Linux source code, but has proved usable for a wide range of software projects. lxr.linux.no is currently running an experimental fork of the LXR software.

    0 讨论(0)
  • 2021-01-30 15:57

    Perhaps a tool like KCacheGrind would be of help. It generates call graphs based on actual calls and cannot pre-generate a call graph without actually running the program, which may not suit your needs, but then it again it may.

    0 讨论(0)
  • 2021-01-30 16:03

    You appears to want to acquire a flowchart of C source code ("decisions", "code blocks").
    Something like this C flowchart?

    To do this correctly, esp. for Linux kernal code, I'd expect you to have to preprocess the code first to get rid of macros and conditionals. I would assume that GCC would construct such a graph internally and that you ought to be able to get your hands on that graph.

    0 讨论(0)
  • 2021-01-30 16:06

    History flow's are very neat for changes/diff across multiple versions.

    Codeplex has a project, Dependency Visualizer which does support C also.

    Gprof2Dot can render oprofile, this would get you dynamic info also.

    CodeViz also (static tool) would work.

    If your using gcc, gcc-xml has an introspector plugin also todo this.

    0 讨论(0)
提交回复
热议问题