sqlite-with-gcov

Installation
SKILL.md

SQLite with gcov Code Coverage

This skill provides guidance for compiling SQLite or similar C/C++ projects with gcov instrumentation for code coverage analysis.

Core Concepts

How gcov Works

gcov generates two types of files:

  • .gcno files: Generated at compile time, contain control flow graph information
  • .gcda files: Generated at runtime, contain execution counts

Critical understanding: gcov embeds absolute paths at compile time. The .gcda files are written to paths based on where the source was compiled, NOT where the binary is installed or executed from.

Path Mechanics

When compiling with -fprofile-arcs -ftest-coverage (or --coverage):

  1. The compiler records the absolute path of each source file
  2. At runtime, .gcda files are written relative to these embedded paths
Related skills

More from letta-ai/skills

Installs
32
Repository
letta-ai/skills
GitHub Stars
97
First Seen
Jan 24, 2026