views:

122

answers:

3

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

+4  A: 

The magic Google term is "code metrics". Wikipedia has a list.

Thomas
+1  A: 

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.

Shiraz Bhaiji
A: 

SourceMonitor is free and easy to use software for reporting code metrics.

John D. Cook