Keil Logo

µVISION: Configuring PC-lint


Information in this article applies to:

  • Keil MDK All versions
  • C166 Version 4 and Later
  • C251 Version 3 and Later
  • C51 Version 6 and Later
  • µVision Version 2.10 and Later

NOTE: The Keil tools do not support PC-lint Plus.


QUESTION

How do I configure PC-Lint to work with the µVision2 IDE?

ANSWER

  1. Install PC-Lint as described in the PC-Lint Manual.
  2. Start µVision and Select Setup PC-Lint from the Tools menu.
  3. Specify the path to the PC-Lint program in the Lint Executable input line. Usually, this is C:\LINT\LINT-NT.EXE.
  4. Specify the configuration file to use in the Configuration File input line.C:\KEIL\C51\BIN\CO-KC51.LNT for C51, C:\KEIL\C166\BIN\CO-KC166.LNT for C166, or C:\KEIL\C251\BIN\CO-KC251.LNT for C251.

You are now ready to lint your source files. From the Tools menu, the Lint and Lint All Source Files selections, run PC-Lint. The output from PC-Lint displays in the Output Window.

To ensure that the results in the Output Window are correct, PC-Lint MUST HAVE the following options:

-hsb_3
below
-format="*** LINT: %(%f(%l) )%)%t %n: %m"
format
-width(0,10)

These options are specified in the .LNT files mentioned above.

Note that PC-lint works best when installed in the C:\LINT\ folder. Placing C:\Program Files\LINT\ will not work because of the space in the folder name.

MORE INFORMATION

If using a modern version of µVision, see these guides for setting up PC-Lint in the IDE:

SEE ALSO

Last Reviewed: Monday, December 14, 2020


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.