How many GCC optimization levels are there?

后端 未结 4 1059
情深已故
情深已故 2020-11-28 20:07

How many GCC optimization levels are there?

I tried gcc -O1, gcc -O2, gcc -O3, and gcc -O4

If I use a really large number, it won\'t work.

However, I

4条回答
  •  粉色の甜心
    2020-11-28 20:18

    Four (0-3): See the GCC 4.4.2 manual. Anything higher is just -O3, but at some point you will overflow the variable size limit.

提交回复
热议问题