* How can i use 'freorder-functions'?
@ 2014-05-15 13:38 Jungsoo Son
0 siblings, 0 replies; only message in thread
From: Jungsoo Son @ 2014-05-15 13:38 UTC (permalink / raw)
To: gcc-help
Dear gcc members,
I'm Jungsoo Son
The reason that I send this mail to you is that I want to know how to use
'freorder-functions' using 'fprofile-arcs'.
I've tried several times but it was fail on my test.
The function location was not reordered. Function location was same with 'no
freorder-fuctions'
Should I set attribute to each function as "__attribute__
((section(".text.hot)))" ?
The following is my test sequence:
1. compile sample code with '-fprofile-arcs' (gcc -o sample sample.c ->
fprofile-arcs)
2. run sample program (./sample)
--> i got a file profiled sample.gcda
3. recompile sample code with 'freorder-functions' (gcc -o sample sample.c
-> freorder-functions)
--> I thought that the gcc use gcda when source files are compiled. But
there is no difference from original binary (gcc -o sample sample.c)
Please let me know how to use '-freorder-functions'.
Regards,
Jungsoo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-15 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-15 13:38 How can i use 'freorder-functions'? Jungsoo Son
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).