首页 > 其他 > 详细

禁用"省略帧指针"优化| 禁用FPO

时间:2021-03-13 23:55:35      阅读:62      评论:0      收藏:0      [点我收藏+]

禁用"省略帧指针"优化

Disabling Frame Pointer Omission Optimizations

We recommend turning off Frame Pointer Omission (FPO) optimization in release version configurations, as this optimization does not really give an appreciable gain, but greatly complicates the analysis of the dump: the /Oy compiler option makes using the debugger more difficult because the compiler suppresses frame pointer information. Moreover, in Visual Studio 2010 this optimization is disabled by default.

我们推荐在release版本中禁用省略帧指针优化(FPO), 因为此优化并无实际显著的效果, 但却大大增加了对dump分析的难度: /Oy 编译器选项使调试更加困难, 因为编译器压缩了帧指针信息, 在vs2010中该选项已被默认关闭.

要禁用FPO优化

To disable the FPO optimization:

  1. In the Solution Explorer window, right-click your project and open project Properties.
  2. Choose Configuration Properties->C/C++->Optimization.
  3. In the Omit Frame Pointers field, choose No (/Oy-).

禁用"省略帧指针"优化| 禁用FPO

原文:https://www.cnblogs.com/vikinn/p/14530476.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!