Thanks for replying. I searched online but could not find much information about GCC tree-profiling. GCC Internal also does not explain much on that. Is there any other document explains that subject? Or some kind of tutorial or small example that demonstrates how to manipulate GIMPLE tree will be also very helpful. Thanks Haifeng On Feb 17, 2008 1:16 PM, Diego Novillo <dnovillo@xxxxxxxxxx> wrote: > On Fri, Feb 15, 2008 at 6:06 PM, Haifeng He <hehaifeng2nd@xxxxxxxxx> wrote: > > > I would like to instrument to program to do a value profiling of all > > the variables in the program > > See the documentation on -fprofile-generate and -fprofile-use in the > GCC documentation. > > > Diego. >