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

计算机工程 ›› 2007, Vol. 33 ›› Issue (09): 82-83,8.

• 软件技术与数据库 • 上一篇    下一篇

μC/OSII内存管理技术的研究

常铁原,刘 娜,陈文军   

  1. (河北大学电子信息工程学院,保定 071002)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-05-05 发布日期:2007-05-05

Study on μC/OSII Memory Management

CHANG Tieyuan, LIU Na, CHEN Wenjun   

  1. (College of Electronic and Information Engineering, Hebei University, Baoding 071002)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-05-05 Published:2007-05-05

摘要: 在μC/OSII中,当应用任务在申请到的内存块中产生了非法指针,并且指针地址指向了空闲内存块头结构区时(前几个字节),空闲链表将会被破坏。为解决这一隐患,将控制信息与用户空间独立存放。该文通过扩展内存块定位字节至16位,得到一种能够区分1 024个不同内存块的一级内存管理算法。

关键词: μC/OSII, 内存管理, 内存块, 内存分区

Abstract: In μC/OSII, if the point in the memory block applied by the application task is illegal and its address points the first several bytes of the head free memory block, the free memory block list is destroyed. In order to solve such problem, the control information and user space are stored separately. This paper introduces a first-level memory management algorithm which is able to distinguish 1 024 different memory blocks by extending the memory block position bytes to 16 bits.

Key words: μC/OSII, Memory management, Memory block, Memory partition

中图分类号: