编译时添加选项: gcc -fprofile-arcs -ftest-coverage -o test test.cide
运行获得覆盖率结果:./testspa
产生分析报告:gcov test.cit
=>编译
File 'test.c'class
Lines executed:??% (行覆盖率) of ?? (总行数)test