阅读:1098回复:1
2000下用softice调试printer driver,为什么部分局部变量不能在Locals窗口中显示?
哪位大虾遇到过这种情况,指点一下小弟,不胜感激!
|
|
沙发#
发布于: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 |
|