作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2005, Vol. 31 ›› Issue (06): 87-.

• 论文 • 上一篇    下一篇

存储池:一种适合于编译器的存储管理方法

杨书鑫,薛丽萍,张兆庆   

  1. 中科院计算所先进编译研究组,中科院计算所先进编译研究组,中科院计算所先进编译研究组 北京 100080
  • 发布日期:2005-03-25

Memory Pool: A Memory Management Suitable for Compiler

YANG Shuxin, XUE Liping, ZHANG Zhaoqing   

  1. (Research Group of Advanced Compiler,Chinese Academy Sciences, Beijing 100080)
  • Published:2005-03-25

摘要: 介绍开放源码编译器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.

中图分类号: