WIPIVERSE All articles

PC-Lint

PC-lint is a commercial software linting tool produced by Gimpel Software for the C and C++ programming languages. It is a command-line tool for performing static code analysis, indicating suspicious or plainly incorrect issues in source code.

Overview

PC-lint performs static analysis by parsing source code files, performing semantic analysis, and building an abstract syntax tree to represent the program. Like a compiler, it analyzes source code without executing it, allowing developers to detect potential bugs, glitches, inconsistencies, non-portable constructs, redundant code, and other issues across multiple modules—a perspective a typical compiler does not provide.

History

PC-lint was first released in 1985 by Gimpel Software, an American company founded by Dr. Jim Gimpel. It was inspired by the original Unix lint utility and became one of the pioneering commercial static analysis tools for C and C++ code. On March 15, 2022, Vector Informatik GmbH, a German-based specialist in the development and testing of automotive electronics and software-based systems, acquired 100% of the assets of Gimpel Software LLC.

Successor: PC-lint Plus

PC-lint Plus, released in 2017, is the successor to PC-lint. It offers enhanced performance, deeper diagnostics, and comprehensive support for MISRA, AUTOSAR, and CERT coding standards. It delivers fast, on-premise analysis and integrates into modern development toolchains. The product is currently distributed by Vector.

Platforms

PC-lint runs on Microsoft Windows and OS/2. A separate multi-platform version called FlexeLint is also available for Unix and other platforms, albeit at substantially greater cost.

Use Cases

PC-lint can be used for quality assurance of C or C++ source code and for checking code conformance to coding guidelines such as MISRA C or MISRA C++. It also includes checks for problems unique to parallel programs built on POSIX threads.

IDE Integration

PC-lint can be integrated into integrated development environments (IDEs) as an external tool. The format of its warning messages can be adapted to the form the IDE is able to recognize and process. Third-party tools provide additional integration and functionality:

  • ALOA engine: Originally released for free by Ralf Holly, now hosted on GitHub, providing regression reporting that compares multiple runs of lint.
  • Visual Lint: Provides IDE integration, helps understand PC-lint messages, and generates customizable reports of lint warnings.
  • Linticator: Integrates PC-lint into Eclipse C/C++ Development Tooling to provide live feedback in the editor and to generate configuration files and suppression markers for PC-lint.

References

  • Wikipedia: PC-Lint
  • PC-lint Plus official website (pclintplus.com)
  • Vector Informatik product documentation
Browse

More topics to explore

    Browse all articles