天生我才必有用

GCC的code coverage 编译选项

Posted in 技术    作者:Ray    2011年八月31日

1.编译时:

加入 -fprofile-arcs -ftest-coverage 选项

2.Link时:

加入 -fprofile-arcs

3.生成的文件:

gcda后缀名的文件 (GNU Compiler arc data)

gcno后缀名的文件。

Leave a Reply