Re: How to improve C skill?



On 10 May 2007 15:49:11 -0700, Dave Hansen <iddw@xxxxxxxxxxx> wrote:

On May 9, 9:57 pm, "weidong...@xxxxxxxxx" <weidong...@xxxxxxxxx>
wrote:

[snip]

3) Invest in Gimpel's PC-lint, _learn_ how to use it, _run_ all your
code through it, and _understand_ what it tells you (i.e., fix the
code, not the error). Awesome tool, and the error descriptions are
very instructive. www.gimpel.com

Excellent advice.

I've used PC-lint on C and C++ code and have found it invaluable. The
number of different target platforms/compilers I've used it for is in
the double-digit range, and I've never come across any
platforms/compilers where it didn't flag something of concern, and in
almost all cases flagged one or more plain and simple bugs.

PC-lint teaches you to become a better programmer, on top of finding
bugs at compile-time that would hopefully, but not necessarily, be
found at run-time. Its -w4 option is like a gcc -pedantic option on
steroids.

Best regards
--
jay
.