sloccount

This is the home page of "SLOCCount", a set of tools for counting physical Source Lines of Code (SLOC) in a large number of languages of a potentially large set of programs. This suite of tools was used in my papers More than a Gigabuck: Estimating GNU/Linux's Size and Estimating Linux's Size to measure the SLOC of entire GNU/Linux distributions, and my essay Linux Kernel 2.6: It's Worth More! Others have measured Debian GNU/Linux and the Perl CPAN library using this tool suite.

Name
sloccount
Programs
  • ada_count
  • asm_count
  • awk_count
  • break_filelist
  • c_count
  • cobol_count
  • compute_all
  • compute_sloc_lang
  • count_extensions
  • count_unknown_ext
  • csh_count
  • exp_count
  • f90_count
  • fortran_count
  • generic_count
  • get_sloc
  • get_sloc_details
  • haskell_count
  • java_count
  • jsp_count
  • lex_count
  • lexcount1
  • lisp_count
  • make_filelists
  • makefile_count
  • ml_count
  • modula3_count
  • objc_count
  • pascal_count
  • perl_count
  • php_count
  • print_sum
  • python_count
  • ruby_count
  • sed_count
  • sh_count
  • show_filecount
  • sloccount
  • sql_count
  • tcl_count
Homepage
Version
2.26
License
Platforms
  • i686-cygwin
  • x86_64-cygwin
  • x86_64-darwin
  • aarch64-darwin
  • i686-freebsd
  • x86_64-freebsd
  • aarch64-freebsd
  • aarch64-genode
  • i686-genode
  • x86_64-genode
  • x86_64-solaris
  • javascript-ghcjs
  • aarch64-linux
  • armv5tel-linux
  • armv6l-linux
  • armv7a-linux
  • armv7l-linux
  • i686-linux
  • loongarch64-linux
  • m68k-linux
  • microblaze-linux
  • microblazeel-linux
  • mips-linux
  • mips64-linux
  • mips64el-linux
  • mipsel-linux
  • powerpc64-linux
  • powerpc64le-linux
  • riscv32-linux
  • riscv64-linux
  • s390-linux
  • s390x-linux
  • x86_64-linux
  • mmix-mmixware
  • aarch64-netbsd
  • armv6l-netbsd
  • armv7a-netbsd
  • armv7l-netbsd
  • i686-netbsd
  • m68k-netbsd
  • mipsel-netbsd
  • powerpc-netbsd
  • riscv32-netbsd
  • riscv64-netbsd
  • x86_64-netbsd
  • aarch64_be-none
  • aarch64-none
  • arm-none
  • armv6l-none
  • avr-none
  • i686-none
  • microblaze-none
  • microblazeel-none
  • mips-none
  • mips64-none
  • msp430-none
  • or1k-none
  • m68k-none
  • powerpc-none
  • powerpcle-none
  • riscv32-none
  • riscv64-none
  • rx-none
  • s390-none
  • s390x-none
  • vc4-none
  • x86_64-none
  • i686-openbsd
  • x86_64-openbsd
  • x86_64-redox
  • wasm64-wasi
  • wasm32-wasi
  • aarch64-windows
  • x86_64-windows
  • i686-windows
Defined
Source