文件名称:smalldll
介绍说明--下载内容均来自于网络,请自行研究使用
优化C++程序编译效率的实例
(1)自定义程序的入口
(2)合并区段
(3)不用调malloc,free等函数
(3)不用cout来输出,cin来输入
(4)如果调用了很多库函数如memset,stycpy等等
的话,请导入msvcrt.lib,不然编译器会在程序里面
导入静态库,这样的话程序就会大很多。。
(5)........
减少程序运行内存占用量可以调用
SetProcessWorkingSetSize(GetCurrentProcess(),-1,-1) -Optimized C++ program compiled efficiency Example (1) custom program entry (2) combined section (3) do not adjust malloc, free and other functions (3) not cout to output, cin to input (4) If you call a lot of libraries functions such as memset, stycpy so, then please import msvcrt.lib, otherwise the compiler program which will import the static library, so the program will be much larger. . (5 )........ reduce the memory footprint of running the program can call SetProcessWorkingSetSize (GetCurrentProcess (),-1,-1)
(1)自定义程序的入口
(2)合并区段
(3)不用调malloc,free等函数
(3)不用cout来输出,cin来输入
(4)如果调用了很多库函数如memset,stycpy等等
的话,请导入msvcrt.lib,不然编译器会在程序里面
导入静态库,这样的话程序就会大很多。。
(5)........
减少程序运行内存占用量可以调用
SetProcessWorkingSetSize(GetCurrentProcess(),-1,-1) -Optimized C++ program compiled efficiency Example (1) custom program entry (2) combined section (3) do not adjust malloc, free and other functions (3) not cout to output, cin to input (4) If you call a lot of libraries functions such as memset, stycpy so, then please import msvcrt.lib, otherwise the compiler program which will import the static library, so the program will be much larger. . (5 )........ reduce the memory footprint of running the program can call SetProcessWorkingSetSize (GetCurrentProcess (),-1,-1)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
mydll.cpp
mydll.def
mydll.h
resource.h
sample.cpp
sample.h
mydll.dll
mydll.lib
sample.exe
sample.rc
b.bat
dll.cpp
readme.txt
mydll.def
mydll.h
resource.h
sample.cpp
sample.h
mydll.dll
mydll.lib
sample.exe
sample.rc
b.bat
dll.cpp
readme.txt