Re: Insert codes in "CFG"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At first I am thinking in modifying the GCC. But I wonder if there are
features that help to add new statements on specific points of the
program (in this case, specific blocks of CFG.) I'll do it at the time
the compiler is inserting codes to profile.

Harry

2011/11/9 Ian Lance Taylor <iant@xxxxxxxxxx>:
> Harry Trinta <harrytpc@xxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux