Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search
See also: kloc, Kloc, kłoć, and kłóć



From k (thousand) +‎ LOC (lines of code).



KLOC (plural KLOCs)

  1. (computing, programming) Abbreviation of thousand lines of code.
    • 1991, Glen W. Russell, Experience with Inspection in Ultralarge-Scale Developments (Bell-Northern Research)
      The formula is based on thousands of lines of source code (kLOC) and incorporates Fagan's recommendations for inspection pace, meeting duration, and frequency:
      elapsed time (in days) = 3 × n kLOC
      Here n is an estimate of how many thousands of lines of code will be inspected.
    • 1993, Terry Shepard in Proceedings of the National Workshop on Software Engineering Education (IBM Canada)
      It concludes that defects are found 2 to 4 times faster with inspection than with testing, that defects are typically found at the rate of one defect per man hour invested in inspection, and that inspection finds about 37 defects per kloc if it is done properly.
    • 1996, Steve Ballmer in Triumph of the Nerds II: Riding the Bear (Robert X. Cringely, Paul Sen), about 38 minutes in, relating events around 1989:
      In IBM there's a religion in software that says you have to count KLOCs, and a KLOC is a thousand line of code.
    Coordinate terms: MLOC, GLOC