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. Based on the C source ProgramThe header file (. h) name in the file to locate the related folder (including the INC folder itself) in the "C:/Keil/C51/INC/" directory ). 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.
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.