摘要
内存管理是一个一直值得研究和优化的问题。在TD-SCDMA高层协议栈软件跨平台技术的研究过程中,文中提出了一种内存管理方法:在软件和操作系统之间设立抽象层,抽象层的内存池在系统初始化时集中申请,软件运行时的内存申请释放由抽象层进行调度,抽象层采用大小最匹配算法将内存池中的内存块给软件使用。抽象层提供link函数以提高软件执行效率,并提供内存泄露和内存越界使用的检测。与传统内存管理相比,使用文中介绍的内存管理技术的高层协议栈软件,一次内存调度平均速度可以提高1微秒,并能完全屏蔽下层不同操作系统之间的差异。
The buffer management has been one of the problems which is worthy of being researched and improved all the time. In the development of the operation- system-abstract for the TD- SCDMA high layer protocol software,present a buffer management method: to create an abstraction layer between the software and operating system. The abstraction layer apply for physical memory while initialization. When software applies a memory block, the abstraction layer provides it which rnarehes the size best. The abstraction layer provides the Link function in order to enhance the software efficiency. And it provides the methods for checking buffer leak and cross- border use of memory. Compared with conventional memory management, the software using the abstraction layer can increase the average speed of one memory block application by 1 microsecond and can completely mask the differences between different operating systems.
出处
《计算机技术与发展》
2009年第11期53-56,60,共5页
Computer Technology and Development
关键词
抽象层
面向协议栈的内存管理
连接
abstraction layer
buffer management for protocol layer
link