keil MDK version: V4.03
PC-lint version: V8.0
There are many articles on the Internet about the powerful role of PC-Lint. I don't want to repeat them here. I will just say one thing: a program that can pass the PC-Lint test is not necessarily without problems, but the improvement in quality of a program that has passed the PC-Lint test is self-evident.
First install Keil MDK and PC-lint. Most PC-lint on the Internet is installed in a compressed package, which can be directly unzipped to the C drive. Please support genuine products! ! (Ahem, guilty conscience...)
The method is very simple, because keil MDK has already provided the configuration file of pc-lint corresponding to the keil ARM compiler: CO-KCARM.LNT.
First open mdk, select Tools – Setup PC Lint, and the PC-lint configuration interface shown in Figure 1 will pop up.
Figure 1 PC-lint configuration interface
Click the area marked with red 1 in Figure 1 and select the lint tool; then click the area marked with red 2 in Figure 1 and locate the CO-KCARM.LNT file under the /ARM/bin file in the keil installation directory. This file is the PC-lint check configuration file for the corresponding keil ARM compiler. Finally, click 'OK' to exit and the settings are complete.
Run PC-lint to check the source code in the project: Tools – Lint … is used to check the current C source file opened in the editor, and Tools – Lint All C Source Files is used to check all C source files in the project. The information obtained by PC-Lint will be relocated to the Build – Output window for display. Double-clicking the Lint information line will position the editor to the corresponding source code line.
My program originally had 0 errors and 1 warning () in the compiler. After checking with pc-lint, there were hundreds of errors, warnings, and other information. I was sweating...
Previous article:How to ensure that a certain section of the program is not optimized in Keil MDK
Next article:Keil MDK compiler (V4.01) and H-JTAG issues
Recommended ReadingLatest update time:2024-11-23 10:19
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- Detailed operating instructions for CCS5.5
- IC WKN Driver Laser Diode
- Buying analog discovery 2
- Ameya360: Will Intel's latest generation of discrete graphics cards be discontinued?
- Add a radio to your computer
- Recruiting simulation engineers (software) Annual salary: 200,000-500,000 | Experience: more than 5 years | Work location: Shenzhen
- [Live broadcast on May 9] Discussing solutions to reduce downtime in the new manufacturing era, ADI live broadcast expert Zhao Yanhui is here again
- [Zhongke Bluexun AB32VG1 RISC-V board "run into" RTT evaluation] Software timer + hardware timer
- Why can't the LM2678S-ADJ original be adjusted to 24V after connecting the resistor? I modified the circuit myself (newbie help)
- Title: Power management is an effective indicator of the level of a distribution