Skip to content

Compiler Optimization

Peter Shih edited this page Jul 9, 2017 · 2 revisions
  • PGO: Profile guided optimization
  • Usage
    • cd gcc-7/mcts
    • PROFILING=1 make
    • Run the program for a while
      • It generates several *.gcda files along the .o files
      • Make sure the program is terminated gracefully, so the .gcda files can be flushed.
    • make clean && make
      • Use the generated profile for further optimization
Clone this wiki locally