This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Gcov Internals


Hi,

I am currently trying to understand the internals of Gcov. Specifically I am wondering of the following:

1) Certain Basic Blocks are instrumented with counters that are incremented during execution. During compilation a destructor is registered that actually goes through a gcov_info struct and finds all counters in the appropriate gcov_fn_info struct(s). My question is how (and where in the source code) do the references to the various counters are linked to the gcov_info struct?

2) What exactly is the purpose of the constructor (__gcov_init()) and where are the values of the passed gcov_info struct set (probably related to 1)?

--Sebastian


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]