Projects / SLOCCount


SLOCCount is a suite of programs for counting physical source lines of code (SLOC) in possibly large software systems. It can count physical SLOC for a wide number of languages. It can take a large set of files and automatically categorize their types using a number of different heuristics, and also comes with analysis tools.


Recent releases

  •  01 Aug 2004 20:18

    Release Notes: The assembly language counting code has been improved. In particular, there are improved heuristics and support for "*" as a comment character. Support for Delphi project files has been added (.dpr files, which are essentially in Pascal syntax). Detailed license text has been added to every source file.

    •  11 May 2004 00:57

      Release Notes: This release has a few minor bugfixes and improvements. It automatically tries to use several different MD5 programs until it finds one that works. This is more flexible, and as a result, it now works out-of-the-box on Mac OS X. It accepts "." as the directory to analyze, correctly identifies wrapper scripts left by libtool as automatically generated code, and correctly identifies debian/rules files as makefiles. The installation documentation has improved.

      •  03 Nov 2003 07:17

        Release Notes: This bugfix release eliminated incorrect UTF-8 warnings noticed by certain Perl 5.8.0 users (particularly under Red Hat 9), added support for counting SLOC in literate Haskell files, added more Common LISP and Modula 3 extensions, fixed a bug with counting Perl SLOC (involving skipping in-line POD documentation), fixed a documentation link, and added a "--version" option.

        •  09 Mar 2003 05:28

          Release Notes: This release features a significant improvement for OCAML.

          •  29 Jan 2003 03:57

            Release Notes: Improved support for Fortran, including a counter for Fortran 90.

            Recent comments

            07 Mar 2011 16:04 cgroza

            Excellent tool, love it.

            15 Aug 2002 17:30 reiners

            Excellent utility
            An excellent utility. Also, works fine on CygWin.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.