OVH Cloud OVH Cloud

[gcc] compilation

2 réponses
Avatar
pasde.bcausse.spam
bonsoir,

que veux dire se genre d'avertissement du compilo

XXXX.gcda not found execution counts estimated

merci

--
Bruno Causse
http://perso.wanadoo.fr/othello

2 réponses

Avatar
tonton
Bruno Causse wrote:
bonsoir,

que veux dire se genre d'avertissement du compilo

XXXX.gcda not found execution counts estimated



de ne pas utiliser d'optimisations spéciales sans avoir lu le man ?

voir man gcc section -fbranch-probabilities et -fprofile-arcs

merci



Avatar
Bruno CAUSSE
dans l'article 431e2361$0$20305$, tonton à
a écrit le 7/09/05 1:16 :

voir man gcc section -fbranch-probabilities et -fprofile-arcs

merci




-fbranch-probabilities
After running a program compiled with -fprofile-arcs (see Options for
Debugging Your Program or gcc), you can compile it a second time using
-fbranch-probabilities, to improve optimizations based on the number of
times each branch was taken. When the program compiled with -fprofile-arcs
exits it saves arc execution counts to a file called sourcename.gcda for
each source file The information in this data file is very dependent on the
structure of the generated code, so you must use the same source code and
the same optimization options for both compilations.

Merci pour le "guidage"
--
Bruno Causse
http://perso.wanadoo.fr/othello