Proloc


What can Proloc do?
Proloc can record either individual or all source files of a software project and calculate parameters for these (the files can be both created in a directory structure and held in a source code maintenance system).
The following data are calculated for each individual file:
  • BLOC (Brutto Lines of Code): Number of all lines
  • NLOC (Netto Lines of Code): Number of lines containing no comments
  • Number of comment lines
  • DLOC (Delta Lines of Code): Number of lines inserted or changed in the new version

Since the result of a file comparison can depend on the algorithm used, Proloc provides you with two alternatives: the "Stone algorithm" which is also used in the UNIX command "diff" and the algorithm corresponding to Siemens standard SN77340.

Detail features:
Lines are counted as comment lines if they contain only blank characters or comments. Comments and indents in the sources are not taken into account in the comparison. Similarly, successive blank characters are treated as a single blank character.

Each file of the new version is compared with the file of the same name in the old version which is at the same point in the file tree. All others which are unable to find a partner are regarded as either inserted or deleted. Files whose names have changed can be assigned to each other using what is known as an "assignment file". These files are then also compared with each other. The same applies for directories.

"Linked" files or directories are only counted once. This is regardless of whether the link is a "hard link", "symbolic link" or a "conditional symbolic link".

Proloc produces two files by way of result (one contains the structure of the file trees, the other the result of the count). Each language which Proloc is to count is evaluated separately and a total of all the files in the relevant language is calculated. To decide whether a file belongs to a specific language or not, the file ending ("suffix") is used. However, since you may perhaps also use other suffixes, you can inform the program which suffixes your languages have ("suffix file").

Proloc has a standardized export interface to the further processing steps and an import interface for source code management systems. Various other configuration options (e.g. tab expansion, printer rerouting) facilitate the task of matching the program to your specific development environment.

What hardware platforms can Proloc be used on?

  • MX300N/MX500N, SINIX 5.0 and later
  • MX300I/MX550I , SINIX 5.4 and later
  • WX200I, SINIX 5.4 and later
  • SUN, SUN-OS4.0 and later
  • Apollo WS30
  • Targon/31, TOS 4.0 and SINIX-TOS 5.4 and later
  • PC, MS-DOS 3.3 and later
  • RM600/RM400, SINIX 5.4 and later
  • Interactive UNIX Release 3.2 V3.0

Which programming languages does Proloc support?

  • BS2000 assembler
  • NSC-32000 assembler
  • INTEL-8086 assembler (iAPX assembler)
  • Basic
  • C
  • C++
  • Cobol
  • Fortran
  • Lisp
  • Pascal
  • Prolog
  • Shell: MS-DOS batch files
  • SPL4
  • PL/M
  • Text

Siemens AG Österreich, Program and Systems Engineering PSE
Contact: stdSEM Webmaster
Last modified: 08/27/98 15:42
Copyright © Siemens AG Österreich 1997. All rights reserved.