What is Dynamic Code Analysis?

前端 未结 4 1936
醉话见心
醉话见心 2021-01-01 12:54

What is Dynamic Code Analysis?

How is it different from Static Code Analysis (ie, what can it catch that can\'t be caught in static)?

I\'ve heard of bounds c

4条回答
  •  悲&欢浪女
    2021-01-01 13:09

    Basically you instrument your code to analyze your software as it is running (dynamic) rather than just analyzing the software without running (static). Also see this JavaOne presentation comparing the two. Valgrind is one example dynamic analysis tool for C. You could also use code coverage tools like Cobertura or EMMA for Java analysis.

    From Wikipedia's definition of dynamic program analysis:

    Dynamic program analysis is the analysis of computer software that is performed with executing programs built from that software on a real or virtual processor (analysis performed without executing programs is known as static code analysis). Dynamic program analysis tools may require loading of special libraries or even recompilation of program code.

提交回复
热议问题