Gcov (Using the GNU Compiler Collection (GCC))

Next: `gcov-tool`—an Offline Gcda Profile Processing Tool, Previous: Binary Compatibility, Up: Introduction [Contents][Index]

## 11 `gcov`—a Test Coverage Program ¶

`gcov` is a tool you can use in conjunction with GCC to test code coverage in your programs.

- Introduction to `gcov`
- Invoking `gcov`
- Using `gcov` with GCC Optimization
- Brief Description of `gcov` Data Files
- Data File Relocation to Support Cross-Profiling
- Profiling and Test Coverage in Freestanding Environments