PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > lint still useful?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
lint still useful?

Réponse
 
LinkBack Outils de la discussion
Vieux 11/04/2008, 13h27   #1
copx
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut lint still useful?

I saw one here posting the output of a lint tool in a thread, and that made
me wonder whether using such tools are still useful.

I mean, modern compilers are lint tools themselves, the list of warnings GCC
can produce is almost endless for example. I heard that lint was used in the
past mainly because C compilers provided only minimal sanity checks back
then.

Do you use a lint tool? If yes, which one?





  Réponse avec citation
Vieux 11/04/2008, 14h26   #2
Eric Sosman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: lint still useful?

copx wrote:
> I saw one here posting the output of a lint tool in a thread, and that made
> me wonder whether using such tools are still useful.
>
> I mean, modern compilers are lint tools themselves, the list of warnings GCC
> can produce is almost endless for example. I heard that lint was used in the
> past mainly because C compilers provided only minimal sanity checks back
> then.
>
> Do you use a lint tool? If yes, which one?


The one I use is an imperfect imitation of Karl W. Z. Heuer,
emulated on inferior wetware.

--
Eric.Sosman@sun.com
  Réponse avec citation
Vieux 11/04/2008, 16h58   #3
Spiros Bousbouras
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: lint still useful?

On 11 Apr, 13:27, "copx" <c...@gazeta.pl> wrote:
> I saw one here posting the output of a lint tool in a thread, and that made
> me wonder whether using such tools are still useful.
>
> I mean, modern compilers are lint tools themselves, the list of warnings GCC
> can produce is almost endless for example. I heard that lint was used in the
> past mainly because C compilers provided only minimal sanity checks back
> then.


There is practically an unlimited number of
heuristics a code checking tool can use to
guess that the programmer meant to write one
thing and ended up typing another. If the
programmer is willing to add comments in a
specific format to aid the code checking tool
(like splint allows) then there's even more
room for originality. So how useful they are
depends on how careful the programmer is, how
likely he is to make the kind of mistakes a
code checking tool can diagnose, how willing
he is to play around with the different options
of a code checking tool to find a combination
which s him the most etc. It's a very
personal thing like for example the choice of
programming language (if one has a choice).

> Do you use a lint tool? If yes, which one?


Sometimes I use splint and sometimes Sun lint.
I haven't found one which I'm very happy with
but I haven't experimented much with splint's
options.
  Réponse avec citation
Vieux 11/04/2008, 17h02   #4
Spiros Bousbouras
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: lint still useful?

On 11 Apr, 14:26, Eric Sosman <Eric.Sos...@sun.com> wrote:
> copx wrote:
> > Do you use a lint tool? If yes, which one?

>
> The one I use is an imperfect imitation of Karl W. Z. Heuer,
> emulated on inferior wetware.


A Google search showed that he bears (used to
bear ?) the title of "walking lint" ! How
did he acquire the title ?
  Réponse avec citation
Vieux 11/04/2008, 17h11   #5
Richard Tobin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: lint still useful?

In article <c0d86726-3d7d-4139-87ff-7d1f1ef48074@s39g2000prd.googlegroups.com>,
Spiros Bousbouras <spibou@gmail.com> wrote:

>A Google search showed that he bears (used to
>bear ?) the title of "walking lint" ! How
>did he acquire the title ?


By being able to spot errors in C programs.

-- Richard



--
:wq
  Réponse avec citation
Vieux 11/04/2008, 17h16   #6
Eric Sosman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: lint still useful?

Spiros Bousbouras wrote:
> On 11 Apr, 14:26, Eric Sosman <Eric.Sos...@sun.com> wrote:
>> copx wrote:
>>> Do you use a lint tool? If yes, which one?

>> The one I use is an imperfect imitation of Karl W. Z. Heuer,
>> emulated on inferior wetware.

>
> A Google search showed that he bears (used to
> bear ?) the title of "walking lint" ! How
> did he acquire the title ?


By the way he walked, of course. Most people go "left,
right, left, right" but Karl was "right, right, right, right."

(More often than not, anyhow.)

--
Eric.Sosman@sun.com
  Réponse avec citation
Vieux 11/04/2008, 19h58   #7
user923005
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: lint still useful?

On Apr 11, 5:27am, "copx" <c...@gazeta.pl> wrote:
> I saw one here posting the output of a lint tool in a thread, and that made
> me wonder whether using such tools are still useful.


They are still useful. I lint all of my work.

> I mean, modern compilers are lint tools themselves, the list of warnings GCC
> can produce is almost endless for example. I heard that lint was used in the
> past mainly because C compilers provided only minimal sanity checks back
> then.


Modern compilers have better error checking than before. But Lint is
better.

> Do you use a lint tool? If yes, which one?


Splint for C (it's free):
http://www.splint.org/

PC-Lint for C and C++ on a PC (it's commercial):
http://www.gimpel.com/

And Flexelint for C and C++ on non-PC platforms (same location as PC-
Lint).

I also use bounds checkers and design verification tools and case
tools and anything else I can get my hands on.
They make you look a lot smarter than you are by finding things you
are too dull to notice.
;-)

  Réponse avec citation
Vieux 12/04/2008, 09h00   #8
jaysome
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: lint still useful?

On Fri, 11 Apr 2008 11:58:12 -0700, user923005 wrote:

> On Apr 11, 5:27Âam, "copx" <c...@gazeta.pl> wrote:
>> I saw one here posting the output of a lint tool in a thread, and that
>> made me wonder whether using such tools are still useful.

>
> They are still useful. I lint all of my work.


As should everyone.

>> I mean, modern compilers are lint tools themselves, the list of
>> warnings GCC can produce is almost endless for example. I heard that
>> lint was used in the past mainly because C compilers provided only
>> minimal sanity checks back then.

>
> Modern compilers have better error checking than before. But Lint is
> better.
>
>> Do you use a lint tool? If yes, which one?

>
> Splint for C (it's free):
> http://www.splint.org/


Fair advice.
(Note that splint does not work with C++ code).

> PC-Lint for C and C++ on a PC (it's commercial): http://www.gimpel.com/


Excellent advice.

> And Flexelint for C and C++ on non-PC platforms (same location as PC-
> Lint).


Excellent advice.

> I also use bounds checkers and design verification tools and case tools
> and anything else I can get my hands on. They make you look a lot
> smarter than you are by finding things you are too dull to notice.
> ;-)


Excellent advice.

The more compilers and tools you can use on your code the better, IMHO.

--
jay

http://www.microsoft.com/express/
http://www.ubuntu.com/
http://www.parasoft.com/
http://www.gimpel.com/
http://www.coverity.com/
http://www.bullseye.com/
http://gcc.gnu.org/onlinedocs/gcc/Gcov.html
http://www.splint.org/





  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h58.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12444 seconds with 16 queries