摘要
阐述如何利用GCC配套的代码覆盖率工具GCOV和LCOV对C语言嵌入式代码进行覆盖率统计。利用该方法可以为嵌入式代码测试完成情况提供衡量的指标,也为提高单板代码质量提供有效的数据依据。
In this paper we explain how to use the supporting code coverage tools GCOV and LCOV of GCC to carry out the coverage statistics on the embedded C language code. Using this method,it can provide measurable indicators for the completion status of embedded code test,and provide the effective data basis for improving the quality of embedded code.
出处
《计算机应用与软件》
CSCD
北大核心
2014年第5期326-327,共2页
Computer Applications and Software