terrificskyfox
驱动小牛
驱动小牛
  • 注册日期2003-03-12
  • 最后登录2014-04-28
  • 粉丝0
  • 关注0
  • 积分7分
  • 威望11点
  • 贡献值1点
  • 好评度10点
  • 原创分0分
  • 专家分0分
阅读:1098回复:1

2000下用softice调试printer driver,为什么部分局部变量不能在Locals窗口中显示?

楼主#
更多 发布于:2003-12-12 12:19
哪位大虾遇到过这种情况,指点一下小弟,不胜感激!
terrificskyfox
驱动小牛
驱动小牛
  • 注册日期2003-03-12
  • 最后登录2014-04-28
  • 粉丝0
  • 关注0
  • 积分7分
  • 威望11点
  • 贡献值1点
  • 好评度10点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-12-12 12:59
问题解决了

刚才搜索了一下,看到matt大虾的几篇文章,给出了解决的方案
http://www.driverdevelop.com/forum/viewthread.php?tid=6266

下面给出MSDN文档中的说明

Driver Development Tools: Windows DDK
MSC_OPTIMIZATION
Use the MSC_OPTIMIZATION macro to override the default optimization that the Build utility uses on the compiler. By default, everything is optimized. If you want to turn off optimization in order to step through your code, you can set the MSC_OPTIMIZATION value to whatever is appropriate for your compiler.

When building in a checked build environment of the Windows DDK, this value is set to /Od /Oi. This avoids all optimization. All of these flags also have platform-specific variants.

At the other extreme, you can set this equal to 0xs. This fully optimizes the binaries. When the compiler needs to choose between optimizing for speed or optimizing for size, it optimizes for size ― in other words, it will favor smaller binaries over faster binaries.

You can override the generic MSC_OPTIMIZATION macro with one of these platform-specific macros:

386_OPTIMIZATION
IA64_OPTIMIZATION
AMD64_OPTIMIZATION
When the Build utility runs, it first checks for the platform-specific optimization macro. If this is not defined, it checks for MSC_OPTIMIZATION. If this is not defined either, it defaults to 0xs.

Built on Monday, August 11, 2003
游客

返回顶部