摘要: 介绍开放源码编译器ORC中使用的存储管理方法:存储池。存储池不是一种通用的存储管理方法,但是它特别适合于编译器。在编译器这个应用场合下,存储池比通用的malloc/free存储管理机制具有十分明显的优点。具体表现为分配速度快、管理开销小、释放时间开销小以及没有内存泄漏的问题。
关键词:
存储池,
Malloc/free,
编译器
Abstract: This paper introduces a novel memory management mechanism called mempool. Although mempool is not a general purpose memory management mechanism, it is suited to compiler quite well. In the application of compiler, mempool shows striking advantage over the traditional malloc/free mechanism, including faster allocation, lower management overhead, lower overhead in free operator and has no memory leakage problem inherits in its mechanism.
中图分类号:
杨书鑫,薛丽萍,张兆庆. 存储池:一种适合于编译器的存储管理方法[J]. , 2005, 31(06): 87-.
YANG Shuxin, XUE Liping, ZHANG Zhaoqing. Memory Pool: A Memory Management Suitable for Compiler[J]. , 2005, 31(06): 87-.