Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Profile-Based CFLAGS
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Well.Heeled.Man
n00b
n00b


Joined: 25 Aug 2011
Posts: 19

PostPosted: Sat Sep 03, 2011 1:16 pm    Post subject: Profile-Based CFLAGS Reply with quote

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
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 233

PostPosted: Sun Sep 04, 2011 12:13 pm    Post subject: Re: Profile-Based CFLAGS Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
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