Jack Klein
Guest
|
Posted:
Thu Jan 06, 2005 7:57 am Post subject:
Re: what is Lint?Help me understand plz... |
|
|
On 5 Jan 2005 20:30:11 -0800, s_subbarayan@rediffmail.com wrote in
comp.arch.embedded:
| Quote: | Dear all,
I am often coming across the term "Lint" though I am not aware of
what it is and where it is used.Even I found a thread of discussion
about it in this group.Can some one clarify me whats this "Lint" all
about and what sort of applications require "Lint"?
Sorry for my ignorance,but always better to learn now then later...
Regards,
s.subbarayan
|
There is no one "lint", there are quite a few of them. A lint program
reads C (and some of them C++) source code files and performs many
checks on the code. It will warn about possible and actual problems,
many of them that compilers will not catch even with their highest
warning level turned on. In general, you have to tune a version of
lint to your code and your coding style, or it may generate too many
warning messages.
The two most widely used versions of lint on a PC are:
Splint, free and open source, for C only no C++,
http://www.splint.org.
PC-Lint, a commercial product for both C and C++, comes with
configuration files for many popular compilers and can be customized
for almost any C or C++ compiler. Costs a few hundred dollars, see
http://www.gimpel.com, and well worth the price for anyone doing
serious programming.
Anyone who claims to be a professional programmer developing C or C++
code on a PC for any target who does not use lint on all code before
shipping is actually not a true professional at all.
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html |
|