Is there a tool which is able to parse my source code (fortran, C or C++) and return statistics such as the number of loops, the average loop size, the number of functions, the number of function calls, the number, size and type of arrays, variables, etc ?
Something similar to this which does not run easily on my architecture
Some of the most common and convenient statistical tools to quantify such comparisons are the F-test, the t-tests, and regression analysis. Because the F-test and the t-tests are the most basic tests they will be discussed first.
Statistical methods were classified into four categories: descriptive methods, parametric inferential methods, nonparametric inferential methods, and predictive methods.
The magic Google term is "code metrics". Wikipedia has a list.
There is a tool called nDepend that gives that kind of analysis.
http://ndepend.com/
It is mainly for .net languages, but they do have a version for c++ and Java.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With