The Source Lines of Code Count (SLOCC) computer program counts the number of source lines of a computer code, as an aid in the management of software, documentation of code, estimation of cost, and satisfying miscellaneous code-metric needs. SLOCC accommodates the following programming languages: Ada, Pascal, C++, FORTH, Visual Basic, Z80 Assembly, and MIL-1750 Assembly. Depending on the language, SLOCC counts whichever of the following is or are applicable: source-code lines, continuations of source lines, comment lines, side comment lines (comments on the same lines with source code), end lines, blank lines, and lines of such other types as are appropriate to the target language.

One problem often encountered in counting source-code lines is the interpretation of the count. Because of coding styles, a program could be written in such a way that some lines are counted in a manner different from what one might expect. To resolve ambiguities that arise in connection with differing interpretations and counts, SLOCC affords the capability to log all lines of code into a table, wherein each line of code is identified by type.

SLOCC was written in Microsoft Access Basic. SLOCC requires an IBM-PC-compatible computer that runs Microsoft Access v7.0 or higher and that contains at least 16MB of random-access memory. SLOCC has been implemented successfully under Windows 95 and Windows NT 4.0. SLOCC was released to COSMIC in 1997.

This program was written by Michael Neighbors of Sverdrup Technology, Inc., for Marshall Space Flight Center. No further documentation is available. MFS-31225