473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 2797
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John J. Lee | last post by:
Anybody know of one? Actually, I have a feeling that emacs understands a standard format for errors, which would make it really easy to implement this by having the coverage tool print results...
6
by: tjm | last post by:
Pure coverage from Rational is the only coverage tool I've been able to find for C#, and I don't really want to pay what Rational charges for something as simple as a coverage tool. So, I'd like...
4
by: O. Zimmermann | last post by:
Hello, I am looking for a tool to process torough UNIT and COVERAGE testing over 60 and more functions of a "critical" embedded application written in C. I found IPL's Cantata++ but we don't...
5
by: Nikhil | last post by:
Hi, I have a set of C source files and I need a tool which can add probes and then dynamically trace the execution and print the results (The C source code does not have any printf statements)....
0
by: alan.lemon | last post by:
I currently use CxxTest as my unit testing framework for C++. It has really worked well to meet my needs. Does anyone know of a good _free_ coverage analysis tool? If this is the wrong place to...
1
by: =?UTF-8?B?TWFydGluIFDDtnBwaW5n?= | last post by:
Hello, I am searching for a good profiling tool for C# which can be easily embedded into Visual Studio. My objective is to measure the times and counts of every method in my program. If...
1
by: Steven W. Orr | last post by:
Lots of code, calls to, calls by, inheritance, multiple tasks, etc. What do people use to figure out what's happening? TIA -- Time flies like the wind. Fruit flies like a banana. Stranger...
5
by: ev | last post by:
Hello, We are looking for any testing tool that is capable of checking code coverage for C,C ++ and Java code. Or at least for C and C++. We want to know how much (percentage) of our code written...
24
by: David | last post by:
Hi list. What strategies do you use to ensure correctness of new code? Specifically, if you've just written 100 new lines of Python code, then: 1) How do you test the new code? 2) How do...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.