How do I find out why g++ takes a very long time on a particular file?

后端 未结 8 1380
日久生厌
日久生厌 2021-02-01 21:51

I am building a lot of auto-generated code, including one particularly large file (~15K lines), using a mingw32 cross compiler on linux. Most files are extremely quick, but thi

8条回答
  •  别那么骄傲
    2021-02-01 22:33

    Won't give all the details you want, but try running with the -v (verbose) and -ftime-report flags. The latter produces a summary of what the compiler has been up to.

提交回复
热议问题