News for hackers. Stuff that matters.
Re:Bubble sort slower with -O3 than -O2 with GCC by bick_nyers on Monday October 18, 2021 @08:10AM (#28904587)
Do you know of any tools for generating this, possibly with runtime data? Been wanting to do this ever since I learned about the feature but I don't want to do this by hand for dependencies.

Edit: It is possible that I just don't understand how to actually implement PGO

Re:Bubble sort slower with -O3 than -O2 with GCC by gnufx on Monday October 18, 2021 @05:08PM (#28911779)
I don't know what exactly is required, but the basic business is

  gcc -fprofile-generate ...
  ./a.out ...
  gcc -fprofile-use ...
I don't know the current state of https://gcc.gnu.org/wiki/AutoFDO