VS2005 VC++ 代码优化问题
2007-06-02 00:57
204 查看
今天应该是个不错的日子,股市大跌,然之我的代码也与我有了分歧。
X->y=GetProcAddress(GetModuleHandle(_T("Kernel32")), "LoadLibraryA");
DEBUG Version :[没问题]
10001AE8 push offset __pDefaultRawDllMain+0C4h (10003218h)
10001AED push offset __pDefaultRawDllMain+0D4h (10003228h)
10001AF2 call dword ptr [__imp__GetModuleHandleA@4 (1000302Ch)]
10001AF8 push eax
10001AF9 call dword ptr [__imp__GetProcAddress@8 (10003034h)]
10001AFF mov ecx,dword ptr [ebp+0Ch]
10001B02 mov dword ptr [ecx+0B8h],eax
Release Version :[大问题]
10001AE8 push offset __pDefaultRawDllMain+0C4h (10003218h)
10001AED push offset __pDefaultRawDllMain+0D4h (10003228h)
10001AF2 call dword ptr [__imp__GetModuleHandleA@4 (1000302Ch)]
10001AF8 push eax
10001AF9 call dword ptr [__imp__GetProcAddress@8 (10003034h)]
最后只能
X->y=GetProcAddress(GetModuleHandle(_T("Kernel32")), "LoadLibraryA");
DEBUG Version :[没问题]
10001AE8 push offset __pDefaultRawDllMain+0C4h (10003218h)
10001AED push offset __pDefaultRawDllMain+0D4h (10003228h)
10001AF2 call dword ptr [__imp__GetModuleHandleA@4 (1000302Ch)]
10001AF8 push eax
10001AF9 call dword ptr [__imp__GetProcAddress@8 (10003034h)]
10001AFF mov ecx,dword ptr [ebp+0Ch]
10001B02 mov dword ptr [ecx+0B8h],eax
Release Version :[大问题]
10001AE8 push offset __pDefaultRawDllMain+0C4h (10003218h)
10001AED push offset __pDefaultRawDllMain+0D4h (10003228h)
10001AF2 call dword ptr [__imp__GetModuleHandleA@4 (1000302Ch)]
10001AF8 push eax
10001AF9 call dword ptr [__imp__GetProcAddress@8 (10003034h)]
最后只能
#pragma optimize( "", off ) . . . #pragma optimize( "", on )
相关文章推荐
- vs2005中优化代码
- 从VC6到VC9移植代码问题总结
- php代码优化及php相关问题总结
- VC6代码向VC2005升级时要注意的问题
- 解决在vc调试代码结束时候,不能把控制台黑屏目退出的问题
- 解决在vc调试代码结束时候,不能把控制台黑屏目退出的问题
- VC6项目移植到VS2008的若干问题——好的代码,从我做起,从现在做起。
- [置顶]群蚁算法理论与实践全攻略——旅行商等路径优化问题的新方法【附C#群蚁算法完整项目代码】
- [VB.NET]openFileDialog控件的问题:以下两种代码哪个更优化一些?
- 读者写者问题-写者优先参考答案(vc代码)
- 【C#代码实战】群蚁算法理论与实践全攻略——旅行商等路径优化问题的新方法
- 群蚁算法理论与实践全攻略——旅行商等路径优化问题的新方法【附C#群蚁算法完整项目代码】
- vs2005 的代码和 dll 版本问题导致不能编译或调试[其他版本可能也有这个问题]
- 背包问题 没有进行空间优化的java代码
- 从VC6到VC2008移植代码问题总结收藏
- 程序从VC6移植到VS2005环境下的常见问题(三)
- CPU与代码优化(2):关于高速缓存命中问题的实验(Unity内)与研究
- java中代码优化问题
- 背包问题(空间优化)经典代码
- 解决在vc调试代码结束时候,不能把控制台黑屏目退出的问题