This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What is the best Lint for Keil compatibility?

What is the best Lint for Keil compatibility?
And do you have any files that would help make the compatiblity tighter? or the installtation easier?

I see a few articles about PC-Lint. Is this the best or the only one that works with Keil?

Sean

  • I use PC-Lint with C51. Seems to work fine. Gimpel supplies a Keil C compatibility file that tells lint all about the special keywords and syntax, so you don't have to code that yourself. You just set up your lint configuration file with the supplied files. I had no trouble with it.

    My top-level project configuration file:

    -ic:\lint\lnt
    // Keil C51
    co-kc51.lnt -si4 -sp4
    // Codewright editor
    env-cw6.lnt

    // include paths for project
    -ic:\Keil\C51\inc
    // others deleted

    -e537 // repeated include file
    -e655 // bit-wise op uses compatible enums
    -esym(553,DEBUG) // undefined, assumed 0
    -esym(788,*Num*,*Force16*) // enum constant not used in switch
    -e834 // operator '-' followed by op '-' is confusing

    So it's just that easy. Integrating lint into your IDE will probably be more trouble than integrating it with the compiler.