This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: lint for ppc / gcc / RTEMS?


> 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