471,343 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,343 software developers and data experts.

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 2648
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
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.