This is the mail archive of the gcc-help@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]

Re: Insert codes in "CFG"


Harry Trinta <harrytpc@gmail.com> writes:

> I would know how to include new statements in specific CFG blocks
> during compilation. There are resources for this?
> During the profile instrumentation, codes are included on the edges of
> the CFG. How to include code in the block?
> At first I want to include a line code in each block. This line will
> call a function I created in libgcov. This function receive a
> parameter of type int or unsigned.

I think the options here are writing a compiler plugin or modifying gcc
itself.  For information on plugins you can start at

http://gcc.gnu.org/onlinedocs/gccint/Plugins.html
http://gcc.gnu.org/wiki/plugins

Ian


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