[cfe-dev] Any work on code coverage "add-on" like gcov?

Daniel Dunbar daniel at zuster.org
Tue Sep 2 13:09:43 PDT 2008

As far as I know no work is being done on this.

Adding support for emitting the same kind of instrumentation used by gcov
would probably not be very difficult and seems fairly reasonable. One issue
that may come up here is that gcov is tied fairly tightly, I believe, with
gcc and libgcc versions. I know this impacts the file format, I'm not sure
much this impacts the actual instrumentation. I suspect the in memory
instrumentation data structures are tightly coupled to the gcov version,
complicates configuration and maintenance if you want it to interoperate
seamlessly with the system gcc & gcov.

Of course, designing a separate coverage instrumentation system would also
be a viable approach, but significantly more work...

 - Daniel

On Tue, Sep 2, 2008 at 12:36 PM, Shawn Erickson <shawnce at gmail.com> wrote:

> I am wondering if any work is taking place or is possibly planned to
> bring code coverage instrumentation to clang (emit code with
> instrumentation, ideally robustly dealing with macro expansion). I
> believe all of it would/could be done in the front end?
> If no work is taking place or planned any opinions on this topic?
> -Shawn
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080902/711638b1/attachment.html>

More information about the cfe-dev mailing list