View previous topic :: View next topic |
Author |
Message |
Well.Heeled.Man n00b
Joined: 25 Aug 2011 Posts: 19
|
Posted: Sat Sep 03, 2011 1:16 pm Post subject: Profile-Based CFLAGS |
|
|
Hi folks,
I have searched the forums and looked at the GCC man for information RE: an automated, profile based CFLAG. I came across PGO and -fprofile-arcs/-fbranch-probabilities.
It is my understanding that both of these require one CFLAG to create the profile and another to integrate the profile upon recompilation, with the difference being that one creates a profile at compile time and the other creates a profile through program use.
This is obviously great for specific programs but cannot be used system-wide without changing CFLAGS before every upgrade and then again after to recompile everything. Can any of these be used together so that the system will create a profile if one does not exist, or use one if it does, i.e automate this process somewhat?
Cheers,
Scott |
|
Back to top |
|
|
cruzki123 Apprentice
Joined: 16 May 2008 Posts: 262
|
Posted: Sun Sep 04, 2011 12:13 pm Post subject: Re: Profile-Based CFLAGS |
|
|
Well.Heeled.Man wrote: | Hi folks,
I have searched the forums and looked at the GCC man for information RE: an automated, profile based CFLAG. I came across PGO and -fprofile-arcs/-fbranch-probabilities.
It is my understanding that both of these require one CFLAG to create the profile and another to integrate the profile upon recompilation, with the difference being that one creates a profile at compile time and the other creates a profile through program use.
This is obviously great for specific programs but cannot be used system-wide without changing CFLAGS before every upgrade and then again after to recompile everything. Can any of these be used together so that the system will create a profile if one does not exist, or use one if it does, i.e automate this process somewhat?
Cheers,
Scott |
New version of firefox comes with the pgo USEFLAG that does this. Perhaps you cas review the ebuild or eclass to see how the mozilla team have implemented this feature. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|