C and C ++ static analysis software integrated PC-lint Plus installation and configuration!

PC-lint Plus is a static analysis software to find software defects by analyzing the C and C ++ source code. Like the compiler, PC-lint Plus will parse the source code files, perform semantic analysis, and construct an abstract syntax tree to represent the program. PC-lint Plus uses a variety of mechanisms, including data flow analysis, numerical tracking, analysis of reading and writing, strong type checking, validation, and many other features semantic technology to provide powerful and comprehensive analysis of the individual files and entire project.

This article describes the system requirements for installing PC-lint Plus and how to install PC-lint Plus.

System Requirements

1. Supported Operating Systems

  • Windows 7 SP1,Windows 8.1,Windows 10。

  • macOS 10.13 and later.

  • Kernel 2.6.15 or later and glibc 2.11 or later versions of Linux.

2. Hardware Requirements

Minimum requirements

  • 2 GB of RAM

  • x86-64-compatible CPU (for 32-bit versions of Windows x86-compatible CPU)

Recommended Requirements

  • Each concurrent threads 2 GB RAM + and has 1 GB of RAM

  • Multi-core x86-64-compatible CPU

Second, the installation

PC-lint Plus distributed in the form of binary executable files can be copied to the desired directory to install the file through. PC-lint Plus does not require any additional installation steps to use the product.

If you want to run PC-lint Plus, you need to PC-lint Plus executable files in one directory included in the PATH environment variable, or the installation directories to the path, without specifying the full path to the binary of .

(A) set the PATH environment variable on Windows

1. Open a command prompt or run, for example press "R" key while holding down the Windows key.

2, type sysdm.cpl in the run prompt, and then press Enter.

3, select the "Advanced" option in the dialog window card.

4, click the "Environment Variables."

5. In the "System Variables" section, find the PATH variable and include PC-lint Plus added to the list of directories separated by semicolons (if not already exist).

6, in this window, and the rest of the dialog window click "OK."

通过在新打开的终端窗口中运行echo%PATH%来验证更改。

注意:您可能需要具有管理权限才能更改系统设置。此更改不会影响已经打开的命令提示符窗口。

(二)在Linux上设置PATH环境变量

1、使用您喜欢的编辑器打开〜/ .profile

2、添加行PATH = $ PATH:pc-lint-plus-dir,其中pc-lint-plus-dir是PC-lint Plus可执行文件所在目录的完整路径。

3、保存并退出。

通过从新打开的终端窗口运行echo $ PATH来验证更改。

注意:此更改不会影响已经打开的终端窗口。

(三)在macOS上设置PATH环境变量

1、打开终端,例如在按住Command键的同时按下空格键(以打开Spotlight)并输入“Terminal”

2、运行命令sudo nano / etc / paths

3、在文件底部,添加包含PC-lint Plus二进制文件的目录

4、按Ctrl-X退出,然后在出现提示时按“Y”保存。

通过从新打开的终端窗口运行echo $ PATH来验证更改。

注意:此更改不会影响已经打开的终端窗口。

本文内容就是这样了,希望对您有所帮助!您可以关注慧都了解更多产品资讯~


Guess you like

Origin blog.51cto.com/14467432/2482169