lint for ppc / gcc / RTEMS?

David W. Glessner dwg@glenqcy.glenayre.com
Mon Mar 17 08:01:00 GMT 1997


> gcc -Wall is pretty good at picking up most things traditional lint 
> does.  There is a free lint program on the net however (lclint?) which 
> appeared to try to do even more.  I have not tried it myself.

LCLint looks promising, but I've not really tried it.  See
http://larch-www.lcs.mit.edu:8001/larch/lclint.html for more
information.

FWIW, I'm very pleased with Gimpel Software's ( http://www.gimpel.com )
FlexeLint and PC-Lint.  (FlexeLint runs on anything with a C compiler,
PC-Lint runs on Windows95, WindowsNT, DOS, and OS/2.)

I've not done any serious comparisons, but I think FlexeLint is better
than gcc for linting purposes.

When we use gcc, we throw on a few more options:
      -ansi -pedantic -Wall -W -Wshadow -Wlarger-than-256\
                  -Wpointer-arith -Wbad-function-cast\
                  -Wcast-qual -Wcast-align -Wwrite-strings\
                  -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes\
                  -Wmissing-declarations -Wredundant-decls -Wnested-externs\
                  -Winline

--
David



More information about the crossgcc mailing list