468,746 Members | 1,828 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,746 developers. It's quick & easy.

Code coverage tool for C

Can anybody show me a list of such tools so that I can pick up the tools
match my requirement.
Mar 5 '07 #1
7 2566
On Mon, 5 Mar 2007 10:30:03 +0800, "Kai Zhu" <cs***@hotmail.comwrote
in comp.lang.c:
Can anybody show me a list of such tools so that I can pick up the tools
match my requirement.
There are no such tools defined by the C language, which means that
the question is not really topical here.

I would suggest you try news:comp.software-eng, or a Google search.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Mar 5 '07 #2
Kai Zhu <cs***@hotmail.comwrote:
Can anybody show me a list of such tools so that I can pick up the tools
match my requirement.
gcc has options to instrument the code and generate
line-by-line execution counts.

If anyone knows the Windows equivalent, I'd like
to hear it.

--
pa at panix dot com
Mar 5 '07 #3
Pierre Asselin wrote, On 05/03/07 15:05:
Kai Zhu <cs***@hotmail.comwrote:
>Can anybody show me a list of such tools so that I can pick up the tools
match my requirement.

gcc has options to instrument the code and generate
line-by-line execution counts.

If anyone knows the Windows equivalent, I'd like
to hear it.
Well, you could try gcc...

Specific tools are off topic here, but the gcc suggestion was not a joke.
--
Flash Gordon
Mar 5 '07 #4
On Mar 5, 7:05 am, p...@see.signature.invalid (Pierre Asselin) wrote:
Kai Zhu <c...@hotmail.comwrote:
Can anybody show me a list of such tools so that I can pick up the tools
match my requirement.

gcc has options to instrument the code and generate
line-by-line execution counts.

If anyone knows the Windows equivalent, I'd like
to hear it.
I get 426000 hits for this query:
http://www.google.com/search?client=...=Google+Search

Mar 5 '07 #5
Pierre Asselin wrote:
Kai Zhu <cs***@hotmail.comwrote:
>Can anybody show me a list of such tools so that I can pick up
the tools match my requirement.

gcc has options to instrument the code and generate
line-by-line execution counts.

If anyone knows the Windows equivalent, I'd like to hear it.
Just use gcc with the -pg operion and gprof for analysis. DJGPP,
MingW, and Cygwin will run gcc on winblows.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews

Mar 6 '07 #6
CBFalconer <cb********@yahoo.comwrote:
Just use gcc with the -pg operion and gprof for analysis. DJGPP,
MingW, and Cygwin will run gcc on winblows.
That's for profiling, not code coverage. The gcc options
for code coverage are -fprofile-arcs -ftest-coverage .
Then you use the gcov utility to analyze the results.
--
pa at panix dot com
Mar 6 '07 #7
Pierre Asselin wrote:
CBFalconer <cb********@yahoo.comwrote:
>Just use gcc with the -pg operion and gprof for analysis. DJGPP,
MingW, and Cygwin will run gcc on winblows.

That's for profiling, not code coverage. The gcc options
for code coverage are -fprofile-arcs -ftest-coverage .
Then you use the gcov utility to analyze the results.
You're right. Thanks for the correction.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>

"A man who is right every time is not likely to do very much."
-- Francis Crick, co-discover of DNA
"There is nothing more amazing than stupidity in action."
-- Thomas Matthews
Mar 6 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by John J. Lee | last post: by
6 posts views Thread by tjm | last post: by
4 posts views Thread by O. Zimmermann | last post: by
5 posts views Thread by Nikhil | last post: by
reply views Thread by alan.lemon | last post: by
1 post views Thread by =?UTF-8?B?TWFydGluIFDDtnBwaW5n?= | last post: by
1 post views Thread by Steven W. Orr | last post: by
5 posts views Thread by ev | last post: by
24 posts views Thread by David | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
xarzu
2 posts views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.