VMMap 是进程虚拟和物理内存分析实用工具。http://technet.microsoft.com/zh-cn/sysinternals/dd535533
VMMap is a process virtual and physical memory analysis utility. It shows a breakdown of a process's committed virtual memory types as well as the amount of physical memory (working set) assigned by the operating system to those types. Besides graphical representations of memory usage, VMMap also shows summary information and a detailed process memory map. Powerful filtering and refresh capabilities allow you to identify the sources of process memory usage and the memory cost of application features.
Besides flexible views for analyzing live processes, VMMap supports the export of data in multiple forms, including a native format that preserves all the information so that you can load back in. It also includes command-line options that enable scripting scenarios.
VMMap is the ideal tool for developers wanting to understand and optimize their application's memory resource usage.
不要迷信书、考题、老师、回帖;
要迷信CPU、编译器、调试器、运行结果。
并请结合“盲人摸太阳”和“驾船出海时一定只带一个指南针。”加以理解。
任何理论、权威、传说、真理、标准、解释、想象、知识……都比不上摆在眼前的事实!
有人说一套做一套,你相信他说的还是相信他做的?
其实严格来说这个世界上古往今来所有人都是说一套做一套,不是吗?
不要写连自己也预测不了结果的代码!
/F (Set Stack Size)
Home | Overview | How Do I | Compiler Options
The /Fnumber option sets the program stack size to a specified number of bytes. If you don’t specify this option, a stack size of 1 MB is used by default. The number argument can be in decimal or C-language notation. The argument can range from a lower limit of one to the maximum stack size accepted by your linker. (The linker rounds up the specified value to the nearest 4 bytes.) A space is optional between /F and number.
You can also set stack size by using the linker’s /STACK option or by running EDITBIN on an .EXE file.
You may want to increase the stack size if your program gets stack-overflow diagnostic messages.