home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / metric / halstead.cmm < prev    next >
Encoding:
Text File  |  1988-05-03  |  3.4 KB  |  77 lines

  1. 12-May-87 14:27:36-MDT,2528;000000000001
  2. Return-Path: <BGABLE@ADA20.ISI.EDU>
  3. Received: from ADA20.ISI.EDU by SIMTEL20.ARPA with TCP; Tue, 12 May 87 14:27:13 MDT
  4. Date: 12 May 1987 13:26:01 PDT
  5. From: BGABLE@ADA20.ISI.EDU
  6. Subject: HALSTEAD - a comment or two
  7. To:   RCONN@SIMTEL20.ARPA
  8. cc:   BGABLE@ADA20.ISI.EDU
  9.  
  10. Subject: Problems building Halstead and McCabe Metric tools.
  11.  
  12. First of all the distribution kit does not contain what COMPMEAS.ABS says it
  13. should. This abstract mentions two versions of each tool, one that works off Ada
  14. source code, and the other that works from the Intermetrics format Diana program
  15. library. The only version I was able to build was the McCabe version that runs
  16. off of source code. If both versions are contained in the source kit then I must
  17. be doing something wrong, because I could not figure out how to build the Diana
  18. version (this may however be a problem with our version of the Intermetrics
  19. Byron system). 
  20.  
  21. Now Halstead is another story the source file HALSTEAD.SRC seems to have about
  22. three versions of each source code module in it, along with at least 2 copies
  23. (and maybe 3) of a VAX/VMS object module in binary format. This makes the file
  24. impossible to split with PAGER or COMBINE/BREAK. I did however, edit this file
  25. by hand to remove the binary object files and attempt to split it with PAGER.
  26. After checking the differences between versions and purging the older copies, I
  27. attempted to compile HALSTEAD and found that only the Diana version was
  28. contained in the file. 
  29.  
  30. So, it turns out that there is one version of each program in the directory but 
  31. McCabe runs off of source and Halstead runs from the Diana library. I think that
  32. at the very least, the versions of the programs that are contained in the
  33. METRICS directory should run off source code. I'm sure that there are a great
  34. many sites that might benefit from these tools but that don't have any
  35. Intermetrics tools with which to build the Diana libraries. 
  36.  
  37. In addition we have found a couple of Ada constructs that the McCabe tool will
  38. not parse correctly. One is contained in McCabe's own MCCLEX.BDY, which causes
  39. the program to quit with a fatal parser exception, and the other concerns
  40. nested packages, which causes the parser to quit with an empty stack exception. 
  41.  
  42. If Intermetrics is not willing to correct these problems, we would like to take
  43. a stab at it. We will however need a copy of the NYU parser generator to
  44. regenerate the parse and lex tables used by the program. 
  45.  
  46. Mark Schmitz 
  47. Lear Siegler
  48. -------
  49.  9-Jul-87 07:56:13-MDT,879;000000000001
  50. Return-Path: <ADA-SW-REQUEST@SIMTEL20.ARPA>
  51. Received: from nusc-wpn.arpa by SIMTEL20.ARPA with TCP; Thu, 9 Jul 87 07:21:18 MDT
  52. Date: 9 Jul 87 09:07:00 EDT
  53. From: <domingue@nusc-wpn.arpa>
  54. Subject: halstead
  55. To: "ada-sw" <ada-sw@simtel20.arpa>
  56. Reply-To: <domingue@nusc-wpn.arpa>
  57.  
  58.  
  59.   
  60.  
  61.     Help!
  62.  
  63. 1)  After extracting the Halstead tool and attempting compilation on 
  64. a VAX/VMS system, it became apparent the repository was missing the 
  65. "DIANA" subprogram which was being "withed and used". If Any body knows
  66. how or where I can get a copy of "DIANA" please respond.
  67.  
  68. 2)  Also from the Ada repository I extracted the variable_length_io
  69. files. Aparently the code when stored in the repository lost some data
  70. if anyone can help me get a clean copy of this program please help.
  71.  
  72.     send responses to:
  73.     Domingue@NUSC-WPN.ARPA
  74.                         Thank You
  75.                         Bob Domingue
  76. ------
  77.