Jump to content

Lint (software): Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Things lint will do that compilers won't.
RSM (talk | contribs)
+links
Line 1: Line 1:
'''Lint''' was a programming tool that first appeared (outside of Bell Labs) in the seventh version (V7) of the UNIX operating system in 1979. It was a part of PCC, the Portable C Compiler, which was a second compiler included with that system (aside from the principal PDP-11 compiler).
'''Lint''' was a [[computer programming|programming]] tool that first appeared (outside of [[Bell Labs]]) in the seventh version (V7) of the [[Unix|UNIX]] [[operating system]] in [[1979]]. It was a part of PCC, the Portable C Compiler, which was a second [[compiler]] included with that system (aside from the principal PDP-11 compiler).


Lint performed the lexical and syntatic portions of the compilation with substantial additional checks, noting when variables had been used before being set, when they were used as a datatype other than that of their definition, and numerous other programming errors.
Lint performed the lexical and syntatic portions of the compilation with substantial additional checks, noting when variables had been used before being set, when they were used as a datatype other than that of their definition, and numerous other programming errors.


The name of the program was derived from the notion that it would lead to "cleaner", more desirable programming, by picking the "lint" -- little bits of fluff -- out of one's code.
The name of the program was derived from the notion that it would lead to "cleaner", more desirable programming, by picking the "lint" -- little bits of fluff -- out of one's [[code]].


Many of the forms of analysis performed by Lint are also required by optimising compilers, so nowadays compiler warnings provide many of the features of Lint. Still, Lint can do some analysis which compilers typically don't do, such as cross-module consistency checking, and checking that the code will be portable to other compilers.
Many of the forms of analysis performed by Lint are also required by optimising compilers, so nowadays compiler warnings provide many of the features of Lint. Still, Lint can do some analysis which compilers typically don't do, such as cross-module consistency checking, and checking that the code will be portable to other compilers.

Revision as of 23:42, 26 September 2002

Lint was a programming tool that first appeared (outside of Bell Labs) in the seventh version (V7) of the UNIX operating system in 1979. It was a part of PCC, the Portable C Compiler, which was a second compiler included with that system (aside from the principal PDP-11 compiler).

Lint performed the lexical and syntatic portions of the compilation with substantial additional checks, noting when variables had been used before being set, when they were used as a datatype other than that of their definition, and numerous other programming errors.

The name of the program was derived from the notion that it would lead to "cleaner", more desirable programming, by picking the "lint" -- little bits of fluff -- out of one's code.

Many of the forms of analysis performed by Lint are also required by optimising compilers, so nowadays compiler warnings provide many of the features of Lint. Still, Lint can do some analysis which compilers typically don't do, such as cross-module consistency checking, and checking that the code will be portable to other compilers.