Open Channel Foundation
Not Logged In |  | 
Open Channel Foundation


Quick Application Search:


SLOCC
Get this title!
¤ 
Get SLOCC


Basic information
¤ 
Contributors


Foundation :: Programming Tools :: SLOCC

SLOCC

Source Lines of Code Count

abacus graphic Moderators:
Adopt This Application!

source code available SOURCE CODE AVAILABLE

SLOCC counts the number of source lines of code as an aid in software management, code documentation, cost estimation and miscellaneous code metric needs. It accommodates the following languages: Ada, Pascal, C, C++, FORTH, Visual Basic, Z80 Assembly, and MIL-1750 Assembly. Depending on the language, the tool counts as applicable: source code lines, continuations of source lines, comment lines, side comment lines (comments on the same line as source code), end lines, blank lines, and other line types as appropriate to the target language. For certain languages, the tool also provides the capabilities to tabulate references to "include files", packages, functions, etc.

A problem often encountered in counting source code lines is the interpretation of the count. Due to coding styles, it is possible for a program to be written in such a way that certain lines are counted differently than you might expect. To resolve these ambiguities and give insight into how code is counted, the tool has the capability to log all lines of code to a table where each line of code is identified by type. This ability to log lines of code and inspect how they are counted can be a valuable tool when working with environments that embed special directives, header information or compiler specific information that you may wish to count separate from source code, comments, etc. It is impractical to anticipate every variation of code possible since there are hundreds of language variants and for each language, many environments. Given this dilemma, it is wise to inspect the table of logged code until you are comfortable with the variant of code you are inspecting, the tool's definition of 'a line of code' and agree with this definition in your application.

SLOCC carries the NASA case number MFS-31225. It was originally released as part of the NASA COSMIC collection.
   More software from National Technology Transfer Center


Open Channel Software runs entirely on Open Source Software. We return value to the Software community in the form of services and original software. Most of our content is currently available as source code, with the copyright owned by the original author, All Rights Reserved. Everything else is Copyright ©2000 - 2012 Open Channel Software.

View our privacy statement.
Contact webmaster at openchannelsoftware dot org with questions.