This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cyclomatic Complexity


Hi John,

I wrote one of these years ago.  The effort is indeed minor,
once you have a running compiler (we did ours from scratch).
Contrary to all the graphical pictures, you don't need a
program flow graph for a C or Pascal-like language; the
tokens seen by the lexer are enough information, with a
little parser work.  We compared our output with an official
McCabe tool (McCabe originated the concept) and got the
same results...

Go for it!

 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]