Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!usc-oberon!smeagol!jplgodo!steve From: steve@jplgodo.UUCP (Steve Schlaifer x3171 156/224) Newsgroups: net.lang.c Subject: Re: questions from using lint Message-ID: <778@jplgodo.UUCP> Date: Tue, 6-May-86 13:01:38 EDT Article-I.D.: jplgodo.778 Posted: Tue May 6 13:01:38 1986 Date-Received: Fri, 9-May-86 10:46:38 EDT References: <7097@cca.UUCP> <759@ccird2.UUCP> <475@snow.warwick.UUCP> <256@valid.UUCP> Organization: Jet Propulsion Labs, Pasadena, CA Lines: 32 Summary: split of lint from cc fits unix nicely In article <256@valid.UUCP>, gelfand@valid.UUCP (Brooks Gelfand) writes: > > I have been programming for many years (over 20) in many different > languages, and C is the only language that I can remember that > has a separate program (lint) to find and report compiler errors in > source code. All of the other languages I have used have this function > built into the compiler. Perhaps because UNIX is a programmers > system rather than a production system this was felt to be unnecessary. > In most production systems the programs spend more time executing than > compiling; while in a development system most of the time is spent editing > and compiling. Thus running lint each time would add to the load > on the system. Actually, having lint be a seperate program fits nicely with the original software tools philosophy of unix. That is, a program should do one thing and do it well. A compiler within this philosophy should compile whatever you give it so long as it can make sense of it. A seperate tool (lint in this case) should exist to point out things that you are doing which are questionable. The idea here is that the programs are then simpler to build, maintain and debug since they each have a simpler function to perform. For a better discussion of this than I can give see the AT&T Bell Laboratories Technical Journal of October 1984 (Vol 63, No. 8, Part 2) article by R. Pike and B. W. Kernighan (Program Design in the Unix Environment). -- ...smeagol\ Steve Schlaifer ......wlbr->!jplgodo!steve Advance Projects Group, Jet Propulsion Labs ....group3/ 4800 Oak Grove Drive, M/S 156/204 Pasadena, California, 91109 +1 818 354 3171