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

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


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