This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Use -fprofile-generate get basic block counts
- From: Jianzhang Peng <jianzhangpeng at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 8 Jan 2010 20:11:12 +0800
- Subject: Use -fprofile-generate get basic block counts
Hi, all
I want to know every instructions an application runs.
So , first , I need to konw every basic blocks' frequency.
I'd like to use -fprofile-generate and -fprofile-use get basic block counts.
As GCC collect the profile information at pass-tree-profile,
I wander whither the instrumentation may restrict some optimization?
For example:
gcc -fprofile-generate -O3 foo.c -o foo
gcc -O3 foo.c -o bar
Dose "foo" and "bar" are equally optimized?
thanks!
--
Jianzhang Peng