Re: A lesson for compiler warning writers

tmb@arolla.idiap.ch (Thomas M. Breuel)
Wed, 17 Jun 1992 04:46:24 GMT

          From comp.compilers

Related articles
A lesson for compiler warning writers Garrett.Wollman@UVM.EDU (1992-06-10)
Re: A lesson for compiler warning writers mcdaniel@adi.com (1992-06-12)
Re: A lesson for compiler warning writers tmb@arolla.idiap.ch (1992-06-17)
Re: A lesson for compiler warning writers maniattb@cs.rpi.edu (1992-06-17)
Re: A lesson for compiler warning writers stephen@estragon.uchicago.edu (1992-06-18)
Re: A lesson for compiler warning writers arnold@cc.gatech.edu (1992-06-18)
Re: A lesson for compiler warning writers xjam@cork.CS.Berkeley.EDU (1992-06-18)
Re: A lesson for compiler warning writers hays@ssd.intel.com (1992-06-18)
Re: A lesson for compiler warning writers kendall@centerline.com (1992-06-19)
[12 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers
From: tmb@arolla.idiap.ch (Thomas M. Breuel)
Keywords: lint
Organization: IDIAP
References: <19920609091040SEB1525@MVS.draper.com> 92-06-050
Date: Wed, 17 Jun 1992 04:46:24 GMT

  mcdaniel@adi.com (Tim McDaniel) writes:


      Garrett.Wollman@UVM.EDU (Garrett Wollman) writes
      > For that matter, if only other compiler vendors could take the lesson
      > from GCC and emit helpful, user-controllable diagnostics.


      Another choice, and much easier, is to use a good lint program.


That's not really a "much easier [...] choice". Lint programs tend to run
quite slowly. That means that either your edit-compile-test cycle will
become much slower, or that you won't run lint on every compilation.


Having a good lint is better than nothing at all, but it is much more
convenient if the compiler performs the same function on every
compilation.


Thomas.


PS: The need for compiler warnings is usually an indication for a design
flaw in the language. For example, implicit conversions between numeric
types in C (integer, float, double) are very likely causes of obscure bugs
in numerical code. They should be eliminated from the language.
Unfortunately, for reasons of backwards compatibility, the best a compiler
can do is to warn about them.
[Ooh, there's flame bait in that PS. But do lint programs really run slowly?
Seems to me they're basically stripped down compilers, they should be
fairly quick. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.