EmbeddedRelated.com
Forums

Re: PC-lint configuration for gnuarm 4.1.1 and integration into makefile

Started by "sub...@aeolusdevelopment.com" April 12, 2007
bertriksikken Wrote
>Does anybody have a pc-lint (.lnt) configuration file, with compiler
>settings for the gnuarm toolchain (arm-elf-gcc 4.1.1)?

I've got one(and an experimental one). I'm away from the office now but
I'll try to get it together tomorrow or saturday.

Robert
--------------------------------
mail2web.com - Microsoft Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange

An Engineer's Guide to the LPC2100 Series

At 01:44 PM 4/12/2007 -0400, s...@aeolusdevelopment.com wrote:
>bertriksikken Wrote
> >Does anybody have a pc-lint (.lnt) configuration file, with compiler
> >settings for the gnuarm toolchain (arm-elf-gcc 4.1.1)?
>
>I've got one(and an experimental one). I'm away from the office now but
>I'll try to get it together tomorrow or saturday.

OK, I've made a couple of .lnt files available at

http://www.aeolusdevelopment.com/Files/arm.lnt
http://www.aeolusdevelopment.com/Files/arm-misra.lnt

The first is the one I use regularly. The second is more experimental, I've
added additional MISRA warnings except for Rule 6.3 which is too noisy,
especially if you use standard libraries.

As far as make goes I just run a set of rules that requires lint to pass
before I invoke gcc. Once past lint any gcc warnings are generally
superfluous.

They may not do much for printf etc. though, I don't use them so I haven't
tested against them. The file I used as my template though has some printf
related comments in it that I left in so it may be worth taking a look at
those to see if the commented out options could be placed back in to help.

Robert

"C is known as a language that gives you enough rope to shoot yourself in
the foot." -- David Brown in comp.arch.embedded
http://www.aeolusdevelopment.com/