-fprofile-generate and multiple runs

Andi Hellmund andi@mail.lxgcc.net
Mon Sep 26 08:22:00 GMT 2011


Hi Mity
>
> When built with -fprofile-generate, and the resulted binary
> is executed multiple times, are the .gcda files (re)written
> from scratch every time, or are they updated so they contain
> a combined profile data from multiple runs?
The files are updated, so it is permitted to run the program mutiple times.
>
> Any other gotchas this approach might bring?

No, it shouldn't ...

Best regards,
Andi



More information about the Gcc-help mailing list