When should I omit the frame pointer?

后端 未结 4 884
悲哀的现实
悲哀的现实 2020-12-14 00:56

Is there any substantial optimization when omitting the frame pointer? If I have understood correctly by reading this page, -fomit-frame-pointer is used when we

4条回答
  •  感动是毒
    2020-12-14 01:28

    Profile your program to see if there is a significant difference.

    Next, profile your development process. Is debugging easier or more difficult? Do you spend more time developing or less?

    Optimizations without profiling are a waste of time and money.

提交回复
热议问题