Use -fprofile-generate get basic block counts
Jianzhang Peng
jianzhangpeng@gmail.com
Fri Jan 8 12:11:00 GMT 2010
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
More information about the Gcc
mailing list