"McCabe's Cyclomatic Complexity" and "Halstead's Metrics"

"McCabe's Cyclomatic Complexity" and "Halstead's Metrics"

Post by Martin Sla » Tue, 22 Nov 1994 12:04:15



The current issue of _Advanced Systems_ has an article on debugging tools
(actually software engineering tools). In a sidebar, they mention:

     McCabe's Cyclomatic Complexity
     Halstead's Metrics

The two apps they review cost $6K (Hindsight)  and $5K (Veritas Vista).

My question: is there anything to these? Any freeware/shareware that
does some of these metrics?

(I tried comp.software.testing, but no takers there. I see no sign of
a FAQ here; apologies if this is an old subject)

    Thanks in advance!

               Martin Slade
               M/S 238-420 JPL/Caltech
               (818)354-2765

 
 
 

"McCabe's Cyclomatic Complexity" and "Halstead's Metrics"

Post by Stephen Bayn » Fri, 25 Nov 1994 17:19:12


: The current issue of _Advanced Systems_ has an article on debugging tools
: (actually software engineering tools). In a sidebar, they mention:

:      McCabe's Cyclomatic Complexity
:      Halstead's Metrics

: The two apps they review cost $6K (Hindsight)  and $5K (Veritas Vista).

: My question: is there anything to these? Any freeware/shareware that
: does some of these metrics?

: (I tried comp.software.testing, but no takers there. I see no sign of
: a FAQ here; apologies if this is an old subject)

:     Thanks in advance!

Here is a list posted to comp.software-eng recently (04/11/94).



|>I need to compile software metrics based on C source code.
|
|Programs for C Source Code Metrics
|**********************************
|

|gather various static measures from C source code, primarily size and complexity
|of various types (McCabe, Halstead, etc.). You can retrieve the full set via
|anonymous ftp from ftp://ftp.qucis.queensu.ca in directory
|pub/software-eng/software/Cmetrics.  The full set is Cmetrics.tar.gz;  the
|individual packages are <name>.tar.gz, where <name> is the appropriate label
|from below:
|
|c-metr-pkg:
|   A collection of tools (control/halstead/kdsi/mccabe) named "metrics" which
|   was put together by Brian Renaud around 1989.
|csize:
|   A tool to measure the size of C programs, written by Christopher Lott in
|   1994.
|cyclo:
|   A tool to analyze cyclomatic complexity of a piece of ANSI C or C++ code,
|   written by Roger Binns in 1993.
|lc:
|   A tool to count lines of code in C files, written by Brian Marick in 1983 and
|   updated 1992.
|metre:
|   A rule-based software metrics tool for standard C, written by Paul Long in
|   1994.
|spr:
|   A tool to measure NCSS for C source programs, written by Ted Shapin in 1989.
|
|--

|Computing and Information Science   phone: (613) 545-6067
|Queen's University, Kingston, Ontario, Canada K7L 3N6  

Another comercial package is Cantata which also does test coverage measurement.

--

Philips Semicondutors Ltd
Southampton                                 My views are my own.
United Kingdom

 
 
 

1. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

My machine: P166+mmx, 32mb ram, 4gb HD with Win95 and Win NT 4.0 and
redhat5.1 co-existed in different partitions.

I issued "sndconfig" within a xterm inside X Window, The program
detects the SB 16 pnp card sets it up with no error message, but when
it launch ModProbe to test out, it gets a message states: An error was
encountered running the ModProbe program."  I tried different IRQ
settings, all ends with the same message.

2nd, When I try to mount /dev/cdrom from File Systerm Manager, the
following error is returned:  Can't find /dev/hdb in /etc/mtab or
/etc/fstab.

3nd, When my machine boots, it halts at "Sendmail" for about 3-5 mins
before it goes to next step.  Obviously there isn't any mail system on
the machine right now because it is a standalone.  How can take this
mail thing out and speed up booting?

last one, Is my Zoom 56k PCI FaxModem a Windmodem that Linux can't use
to connect me to my local isp?

Experts help me out please. thanks.

2. Problems with NM256 module Kernel 2.2.14

3. GETSERVBYNAME()????????????????????"""""""""""""

4. Please Help! mouse in X

5. Why doesn't echo "text" 'command' "more text" work?

6. sysv ipc patches for Linux 0.99 patchlevel 7

7. MIR/SPACE SHUTTLE TRACKING SOFTWARE WITH COLOR GRAPHICS AVAILABLE

8. Type "(", ")" and "{", "}" in X...

9. WHY 'exec "$REALFILE" ${1+"$@"}'

10. "umsdos" vs "vfat" vs "looped ext2"

11. "Novell-like","non-TCP/IP","networking" OS to place Unix

12. "netstat -nr" should show "default" or "0.0.0.0"?