
CRT Machnasim
文章平均质量分 80
zhaoquanguo
这个作者很懒,什么都没留下…
展开
-
程序入口函数和glibc及C++全局构造和析构
1,程序入口函数和初始化 操作系统在装载可执行文件后,将把控制权交付给运行库的程序入口函数。 因此,程序首先运行的代码并不是main函数,而是负责为main函数执行创造环境,并负责调用main的入口函数(Entry Point)。main函数返回的值也会被这个入口函数所记录,然后调用atexit注册的函数,最终结束进程。 这样,程序的执行流程如下所示: 1,操作系统内核加载原创 2011-06-15 17:45:00 · 709 阅读 · 0 评论 -
Inside CRT: Debug Heap Management
When you compile a debug build of your program with Visual Studio and run it in debugger, you can see that the memory allocated or deallocated has funny values, such as 0xCDCDCDCD or 0xDDDDDDDD.转载 2011-06-24 08:43:00 · 399 阅读 · 0 评论 -
Windows调试之内存泄漏
查找内存泄漏的重要性我想就不必多说了,言归正传!发生内存泄漏的简单c++程序#include using namespace std;int main(){ cout const int BUFER_SIZE = 10; c原创 2011-09-08 11:58:30 · 332 阅读 · 0 评论