Pc_lint code check tool (Keil)

Source: Internet
Author: User

Http://download.csdn.net/source/201540

 

PC-lint, which is integrated into Keil. It is easy to use and has powerful functions. Everyone may help you and take every colleague seriously.

Information such as PC-Lint warning and info can be filtered by adding and deleting options in the configuration file. For example, when using the realview compiler of Keil, the configuration file is Keil/ARM/bin/CO-RV.LNT.

For example, to filter information such as INFO 830: location cited in prior message,

Add-e830 to the configuration file.

To see this information, + e830

 

-- Author:Yalta
-- Time: 19:51:05
--Keil μ vision3 using PC-Lint
1. Open Keil μ vision3 and open the project to be checked.
2. Open the Tools menu, select setup PC-lint..., and open the PC-Lint options window.
3. Click the four edit icons (new, delete, move up, move down) in the upper right corner to set PC-Lint include folders. Locate the related folder (including the INC folder itself) in the "C:/Keil/C51/INC/" directory according to the header file (. h) name in the C source file ). For example, "C:/Keil/C51/INC/" and "c:/Keil/C51/INC/Atmel /".
4. set the lint executable path to "X:/(directory of PC-Lint)/LINT-NT.EXE" and the configuration file path to "C:/Keil/C51/bin/CO-KC51.LNT ".
5. Click Tools --> lint... to run PC-lint in the current C source file. Click Tools --> lint all c-source files to run PC-lint in all C source files of the project.
6. After running PC-lint, check that the information is displayed in the build column of the output window. Double-click any row of information. The Compiler automatically locates the corresponding program segment code.
7. compile the information. You can view the description of the information in msg.txt.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.