摘要: 内存泄漏是程序设计中经常出现的问题,会降低系统性能,甚至耗尽内存空间导致系统崩溃。文章采用反射和开放编译技术,对开放编译器OpenC++进行了扩展与改进,设计并实现了一个C/C++动态内存泄漏检测工具,以帮助开发和测试人员查找内存泄漏。
关键词:
反射,
开放编译器,
内存泄漏
Abstract: As a problem that frequently occurrs in programming, memory leak may slow program execution and cause system crash by running out of memory. In this paper, a dynamic memory leak detector for C or C++ program based on the techniques of reflection and open compiler is designed and implemented ,to help engineers find memory leaks.
中图分类号:
孙青岩,陈平. 基于开放编译器的内存泄漏检测机制[J]. , 2004, 30(20): 42-44.
SUN Qingyan,CHEN Ping. A Memory Leak Detection Mechanism Based on Open Compiler Techniques[J]. , 2004, 30(20): 42-44.