> For the complete documentation index, see [llms.txt](https://hezhiqiang.gitbook.io/linux/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hezhiqiang.gitbook.io/linux/ming-ling/gcov.md).

# gcov

测试程序的代码覆盖率的工具

## 补充说明

**gcov命令** 是一款测试程序的代码覆盖率的工具。

### 语法

```
gcov(选项)(参数)
```

### 选项

```
-h：显示帮助信息；
-v：显示版本信息；
-a：输出所有的基本块的执行计数；
-n：并创建输出文件。
```

### 参数

V语言文件：C语言源代码文件。
